Skip to content

Commit 9c864f0

Browse files
committed
Add forward impl for OsStr
1 parent b6685cf commit 9c864f0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

serde/src/de/impls.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,6 +1789,9 @@ forwarded_impl!((T), Box<[T]>, Vec::into_boxed_slice);
17891789
#[cfg(any(feature = "std", feature = "alloc"))]
17901790
forwarded_impl!((), Box<str>, String::into_boxed_str);
17911791

1792+
#[cfg(all(feature = "std", any(unix, windows)))]
1793+
forwarded_impl!((), Box<OsStr>, OsString::into_boxed_os_str);
1794+
17921795
#[cfg(any(feature = "std", feature = "alloc"))]
17931796
impl<'de, 'a, T: ?Sized> Deserialize<'de> for Cow<'a, T>
17941797
where

0 commit comments

Comments
 (0)