Skip to content

Commit

Permalink
Add forward impl for OsStr
Browse files Browse the repository at this point in the history
  • Loading branch information
DBLouis committed Aug 6, 2023
1 parent b6685cf commit 1515e95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions serde/src/de/impls.rs
Expand Up @@ -1789,6 +1789,9 @@ forwarded_impl!((T), Box<[T]>, Vec::into_boxed_slice);
#[cfg(any(feature = "std", feature = "alloc"))]
forwarded_impl!((), Box<str>, String::into_boxed_str);

#[cfg(any(feature = "std", feature = "alloc"))]
forwarded_impl!((), Box<OsStr>, OsString::into_boxed_os_str);

#[cfg(any(feature = "std", feature = "alloc"))]
impl<'de, 'a, T: ?Sized> Deserialize<'de> for Cow<'a, T>
where
Expand Down

0 comments on commit 1515e95

Please sign in to comment.