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
$ cargo install mdbook-d2
....
Compiling toml v0.5.11
Compiling mdbook-d2 v0.2.0
error[E0277]: the trait bound `Value: From<toml::map::Map<std::string::String, toml::value::Value>>` is not satisfied
--> /Users/patrickpilch/.cargo/registry/src/github.com-1ecc6299db9ec823/mdbook-d2-0.2.0/src/backend.rs:69:34
|
69 | let value: toml::Value = ctx.config.get_preprocessor("d2").unwrap().clone().into();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ---- required by a bound introduced by this call
| |
| the trait `From<toml::map::Map<std::string::String, toml::value::Value>>` is not implemented for `Value`
|
= help: the following other types implement trait `From<T>`:
<Value as From<&'a str>>
<Value as From<BTreeMap<S, V>>>
<Value as From<HashMap<S, V>>>
<Value as From<Vec<V>>>
<Value as From<bool>>
<Value as From<f32>>
<Value as From<f64>>
<Value as From<i32>>
and 7 others
= note: required for `toml::map::Map<std::string::String, toml::value::Value>` to implement `Into<Value>`
For more information about this error, try `rustc --explain E0277`.
error: could not compile `mdbook-d2` due to previous error
warning: build failed, waiting for other jobs to finish...
The text was updated successfully, but these errors were encountered:
rustc & cargo version is 1.65.0
The text was updated successfully, but these errors were encountered: