You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I propose to replace this implementation to implement visit_str and visit_bytes, this two methods accept data borrowed and owned. The default implementation of borrowed version forward to not borrowed version.
Thank you for considering this issue!
The text was updated successfully, but these errors were encountered:
Hello,
When deserialize Language from owned data (example with
serde_json::from_reader
orserde_json::from_value
), deserializer fail.This is because only
visit_borrowed_str
andvisit_borrowed_bytes
is implemented onVisitor
.I propose to replace this implementation to implement
visit_str
andvisit_bytes
, this two methods accept data borrowed and owned. The default implementation of borrowed version forward to not borrowed version.Thank you for considering this issue!
The text was updated successfully, but these errors were encountered: