mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-15 17:51:02 +00:00
Deserializing OsString on windows requires a 'de lifetime
This commit is contained in:
@@ -1085,7 +1085,7 @@ impl<'de> Visitor<'de> for OsStringVisitor {
|
|||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
fn visit_enum<V>(self, visitor: V) -> Result<OsString, V::Error>
|
fn visit_enum<V>(self, visitor: V) -> Result<OsString, V::Error>
|
||||||
where V: EnumVisitor,
|
where V: EnumVisitor<'de>,
|
||||||
{
|
{
|
||||||
use std::os::windows::ffi::OsStringExt;
|
use std::os::windows::ffi::OsStringExt;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user