Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Commit 8f56ad5

Browse files
authored
Merge pull request #170 from jackpot51/master
More precise identification of Redox target
2 parents 069fdba + 3deb373 commit 8f56ad5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/serialize.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ array! {
13091309
}
13101310

13111311
impl Encodable for path::Path {
1312-
#[cfg(redox)]
1312+
#[cfg(target_os = "redox")]
13131313
fn encode<S: Encoder>(&self, e: &mut S) -> Result<(), S::Error> {
13141314
self.as_os_str().to_str().unwrap().encode(e)
13151315
}
@@ -1333,7 +1333,7 @@ impl Encodable for path::PathBuf {
13331333
}
13341334

13351335
impl Decodable for path::PathBuf {
1336-
#[cfg(redox)]
1336+
#[cfg(target_os = "redox")]
13371337
fn decode<D: Decoder>(d: &mut D) -> Result<path::PathBuf, D::Error> {
13381338
let string: String = try!(Decodable::decode(d));
13391339
let s: OsString = OsString::from(string);

0 commit comments

Comments
 (0)