We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74643f5 commit 8443f25Copy full SHA for 8443f25
serialization/src/json_encoded.rs
@@ -31,7 +31,7 @@ impl<T> JsonEncoded<T> {
31
32
impl<'de, T: serde::Deserialize<'de>> JsonEncoded<T> {
33
// We cannot use FromStr because of the lifetime limitation
34
- pub fn from_string(s: &'de str) -> Result<Self, serde_json::Error> {
+ pub fn from_string_slice(s: &'de str) -> Result<Self, serde_json::Error> {
35
serde_json::from_str(s)
36
}
37
0 commit comments