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
with rust rustc 1.34.0 (91856ed52 2019-04-10) gives:
cargo run
Compiling serde v1.0.90
Compiling ryu v0.2.7
Compiling itoa v0.4.3
Compiling linked-hash-map v0.5.2
Compiling serde_json v1.0.39
Compiling donkey-make v0.1.1 (/home/samuel/code/donkey-make)
error[E0277]: the trait bound `linked_hash_map::LinkedHashMap<std::string::String, i32>: serde::de::Deserialize<'_>` is not satisfied
--> src/main.rs:6:42
|
6 | let deserialized: Map<String, i32> = serde_json::from_str(&s).unwrap();
| ^^^^^^^^^^^^^^^^^^^^ the trait `serde::de::Deserialize<'_>` is not implemented for `linked_hash_map::LinkedHashMap<std::string::String, i32>`
|
= note: required by `serde_json::de::from_str`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.
error: Could not compile `donkey-make`.
To learn more, run the command again with --verbose.
I've also tried indexmap which seems to be still support however I get a similar error.
The text was updated successfully, but these errors were encountered:
Continuation from #269, but that was a long time ago.
That issue refers to linked-hash-map however that crate is in maintenance mode and as far as I can tell it doesn't seem to support deserializing.
Running
with rust
rustc 1.34.0 (91856ed52 2019-04-10)
gives:I've also tried indexmap which seems to be still support however I get a similar error.
The text was updated successfully, but these errors were encountered: