diff --git a/serde/src/de/impls.rs b/serde/src/de/impls.rs index 441fb36e1..1cf3b1a09 100644 --- a/serde/src/de/impls.rs +++ b/serde/src/de/impls.rs @@ -1789,6 +1789,9 @@ forwarded_impl!((T), Box<[T]>, Vec::into_boxed_slice); #[cfg(any(feature = "std", feature = "alloc"))] forwarded_impl!((), Box, String::into_boxed_str); +#[cfg(any(feature = "std", feature = "alloc"))] +forwarded_impl!((), Box, OsString::into_boxed_os_str); + #[cfg(any(feature = "std", feature = "alloc"))] impl<'de, 'a, T: ?Sized> Deserialize<'de> for Cow<'a, T> where