diff --git a/serde2/src/de2.rs b/serde2/src/de2.rs index 260f9142..4455b619 100644 --- a/serde2/src/de2.rs +++ b/serde2/src/de2.rs @@ -31,6 +31,10 @@ pub trait Visitor, R, E> { Err(d.syntax_error()) } + fn visit_str(&mut self, d: &mut D, v: &str) -> Result { + self.visit_string(d, v.to_string()) + } + fn visit_string(&mut self, d: &mut D, _v: String) -> Result { Err(d.syntax_error()) }