mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-22 19:31:04 +00:00
Implement Serialize for core::fmt::Arguments
This commit is contained in:
@@ -69,6 +69,15 @@ impl Serialize for String {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Serialize for fmt::Arguments<'a> {
|
||||
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
|
||||
where
|
||||
S: Serializer,
|
||||
{
|
||||
serializer.collect_str(self)
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
|
||||
Reference in New Issue
Block a user