diff --git a/src/ser.rs b/src/ser.rs index 5b2d17f8..008b3eaf 100644 --- a/src/ser.rs +++ b/src/ser.rs @@ -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() } })) } @@ -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() } })) }