mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 13:41:01 +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> {
|
) -> Result<Self::SerializeStructVariant, fmt::Error> {
|
||||||
Err(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