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

Commit 4877180

Browse files
committed
Clean up some strange absolute paths in serializer
1 parent 045dfed commit 4877180

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/ser.rs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -520,8 +520,8 @@ impl ser::Serializer for SerializerToYaml {
520520
num::FpCategory::Nan => ".nan".into(),
521521
_ => {
522522
let mut buf = vec![];
523-
::dtoa::write(&mut buf, v).unwrap();
524-
::std::str::from_utf8(&buf).unwrap().into()
523+
dtoa::write(&mut buf, v).unwrap();
524+
str::from_utf8(&buf).unwrap().into()
525525
}
526526
}))
527527
}
@@ -533,8 +533,8 @@ impl ser::Serializer for SerializerToYaml {
533533
num::FpCategory::Nan => ".nan".into(),
534534
_ => {
535535
let mut buf = vec![];
536-
::dtoa::write(&mut buf, v).unwrap();
537-
::std::str::from_utf8(&buf).unwrap().into()
536+
dtoa::write(&mut buf, v).unwrap();
537+
str::from_utf8(&buf).unwrap().into()
538538
}
539539
}))
540540
}

0 commit comments

Comments
 (0)