Deserializing OsString on windows requires a 'de lifetime

This commit is contained in:
David Tolnay 2017-04-04 18:08:36 -07:00
parent 5a98bd9ee3
commit 92bc23e484
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -1085,7 +1085,7 @@ impl<'de> Visitor<'de> for OsStringVisitor {
#[cfg(windows)]
fn visit_enum<V>(self, visitor: V) -> Result<OsString, V::Error>
where V: EnumVisitor,
where V: EnumVisitor<'de>,
{
use std::os::windows::ffi::OsStringExt;