mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-25 15:07:56 +00:00
Use deref coercions when possible
This commit is contained in:
+1
-1
@@ -139,7 +139,7 @@ pub trait Visitor {
|
||||
fn visit_string<
|
||||
E: Error,
|
||||
>(&mut self, v: String) -> Result<Self::Value, E> {
|
||||
self.visit_str(&v[])
|
||||
self.visit_str(&v)
|
||||
}
|
||||
|
||||
fn visit_unit<
|
||||
|
||||
Reference in New Issue
Block a user