Skip to content

Commit

Permalink
Merge pull request #2556 from DBLouis/master
Browse files Browse the repository at this point in the history
Add forward impl for OsStr
  • Loading branch information
dtolnay authored Aug 7, 2023
2 parents b6685cf + 9c864f0 commit aaadd93
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 aaadd93

Please sign in to comment.