Merge pull request #2556 from DBLouis/master

Add forward impl for OsStr
This commit is contained in:
David Tolnay 2023-08-06 18:02:21 -07:00 committed by GitHub
commit aaadd93878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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