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 9c864f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions serde/src/de/impls.rs
Original file line number Diff line number Diff line change
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(all(feature = "std", any(unix, windows)))]
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 9c864f0

Please sign in to comment.