Skip to content

Commit 964fdc8

Browse files
committed
Also use Visitor::visit_string for symbols
See the parent commit for details.
1 parent c08d47e commit 964fdc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/de/deserializer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl<'r, 'i> serde::Deserializer<'i> for Deserializer<'r> {
5555
}
5656

5757
if let Some(symbol) = Symbol::from_value(self.value) {
58-
return visitor.visit_str(symbol.name()?.to_string().as_str());
58+
return visitor.visit_string(symbol.name()?.to_string());
5959
}
6060

6161
if let Some(array) = RArray::from_value(self.value) {

0 commit comments

Comments
 (0)