Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Clean up some strange absolute paths in serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 10, 2021
1 parent 045dfed commit 4877180
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ser.rs
Expand Up @@ -520,8 +520,8 @@ impl ser::Serializer for SerializerToYaml {
num::FpCategory::Nan => ".nan".into(),
_ => {
let mut buf = vec![];
::dtoa::write(&mut buf, v).unwrap();
::std::str::from_utf8(&buf).unwrap().into()
dtoa::write(&mut buf, v).unwrap();
str::from_utf8(&buf).unwrap().into()
}
}))
}
Expand All @@ -533,8 +533,8 @@ impl ser::Serializer for SerializerToYaml {
num::FpCategory::Nan => ".nan".into(),
_ => {
let mut buf = vec![];
::dtoa::write(&mut buf, v).unwrap();
::std::str::from_utf8(&buf).unwrap().into()
dtoa::write(&mut buf, v).unwrap();
str::from_utf8(&buf).unwrap().into()
}
}))
}
Expand Down

0 comments on commit 4877180

Please sign in to comment.