mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-22 10:11:03 +00:00
Simplify serialize impl for String
This commit is contained in:
@@ -55,7 +55,7 @@ impl Serialize for String {
|
|||||||
where
|
where
|
||||||
S: Serializer,
|
S: Serializer,
|
||||||
{
|
{
|
||||||
(&self[..]).serialize(serializer)
|
serializer.serialize_str(self)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user