Skip to content

Commit 8443f25

Browse files
Minor function rename in JsonEncoded
1 parent 74643f5 commit 8443f25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

serialization/src/json_encoded.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl<T> JsonEncoded<T> {
3131

3232
impl<'de, T: serde::Deserialize<'de>> JsonEncoded<T> {
3333
// We cannot use FromStr because of the lifetime limitation
34-
pub fn from_string(s: &'de str) -> Result<Self, serde_json::Error> {
34+
pub fn from_string_slice(s: &'de str) -> Result<Self, serde_json::Error> {
3535
serde_json::from_str(s)
3636
}
3737
}

0 commit comments

Comments
 (0)