From 9c864f0b0283fb0109b68c7b7409d6f605db411b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20Dupr=C3=A9=20Bertoni?= Date: Sun, 6 Aug 2023 19:33:17 +0300 Subject: [PATCH] Add forward impl for OsStr --- serde/src/de/impls.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/serde/src/de/impls.rs b/serde/src/de/impls.rs index 441fb36e1..9e706e019 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(all(feature = "std", any(unix, windows)))] +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