aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ser.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ser.rs b/src/ser.rs
index 795a41d..0550705 100644
--- a/src/ser.rs
+++ b/src/ser.rs
@@ -36,3 +36,9 @@ impl Serialize for &str {
Ok(())
}
}
+
+impl Serialize for String {
+ fn serialize<W: Write>(&self, w: &mut W) -> Result<()> {
+ self.as_str().serialize(w)
+ }
+}