mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-25 06:57:56 +00:00
Support no-default-features mode in Formatter's impl
This commit is contained in:
@@ -1003,4 +1003,11 @@ impl<'a, 'b> Serializer for &'a mut fmt::Formatter<'b> {
|
||||
) -> Result<Self::SerializeStructVariant, fmt::Error> {
|
||||
Err(fmt::Error)
|
||||
}
|
||||
|
||||
fn collect_str<T: ?Sized>(self, value: &T) -> fmt::Result
|
||||
where
|
||||
T: Display,
|
||||
{
|
||||
Display::fmt(value, self)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user