Remove redundant cfg

This commit is contained in:
David Tolnay 2017-04-13 16:43:03 -07:00
parent dbe7d04282
commit 8b6f77095a
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -504,6 +504,7 @@ impl Serialize for OsStr {
use std::os::unix::ffi::OsStrExt;
serializer.serialize_newtype_variant("OsString", 0, "Unix", self.as_bytes())
}
#[cfg(windows)]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
@ -516,7 +517,6 @@ impl Serialize for OsStr {
}
#[cfg(all(feature = "std", any(unix, windows)))]
#[cfg(feature = "std")]
impl Serialize for OsString {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where