Use write_str.

This commit is contained in:
Stephen Chung
2021-06-04 14:23:40 +08:00
parent e35122ae5d
commit 3371eed411
3 changed files with 3 additions and 3 deletions

View File

@@ -692,7 +692,7 @@ impl fmt::Debug for Dynamic {
return fmt::Debug::fmt(_value_any.downcast_ref::<i128>().expect(CHECKED), f);
}
write!(f, "{}", value.type_name())
f.write_str(value.type_name())
}
#[cfg(not(feature = "no_closure"))]