Skip to content

Commit 447170b

Browse files
committed
Merge pull request 1271 from mickvangelderen/mick/impl-from-str-for-map
2 parents ec190d6 + fd35a02 commit 447170b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/value/de.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,13 @@ impl FromStr for Value {
159159
}
160160
}
161161

162+
impl FromStr for Map<String, Value> {
163+
type Err = Error;
164+
fn from_str(s: &str) -> Result<Self, Error> {
165+
super::super::de::from_str(s)
166+
}
167+
}
168+
162169
macro_rules! deserialize_number {
163170
($method:ident) => {
164171
#[cfg(not(feature = "arbitrary_precision"))]

0 commit comments

Comments
 (0)