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
Problem
If yew's indexmap dependency is upgraded to 2.2.6 the following error can be seen when building:
error[E0277]: the trait bound `implicit_clone::unsync::IMap<_, _>: From<IndexMap<K, V>>` is not satisfied
--> packages/yew/src/html/conversion/into_prop_value.rs:277:9
|
277 | IMap::from(self)
| ^^^^ the trait `From<IndexMap<K, V>>` is not implemented for`implicit_clone::unsync::IMap<_, _>`|
= help: the following other types implement trait `From<T>`:
<implicit_clone::unsync::IMap<K, V> as From<indexmap::map::IndexMap<K, V>>>
<implicit_clone::unsync::IMap<K, V> as From<std::rc::Rc<indexmap::map::IndexMap<K, V>>>>
<implicit_clone::unsync::IMap<K, V> as From<&'static [(K, V)]>> <implicit_clone::unsync::IMap<K, V> as From<&implicit_clone::unsync::IMap<K, V>>>
I see that From<IndexMap<K, V>> is implemented here so I'm definitely misunderstanding something. Any pointers appreciated!
I get that problem from time to time, executing a cargo update will fix it. No idea why.
If cargo update fixes it then the reason for this error is that implicit_clone's dependency in the lockfile isn't updated when you modify the Cargo.toml. You have to tell cargo to update indexmap everywhere
Yes, I have a crate that depends on indexmap, it is shared by both frontend and backend. Doing a cargo update for frontend after cargo update for backend will prevent the problem.
Problem
If
yew
'sindexmap
dependency is upgraded to2.2.6
the following error can be seen when building:I see that
From<IndexMap<K, V>>
is implemented here so I'm definitely misunderstanding something. Any pointers appreciated!Steps To Reproduce
packages/yew/Cargo.toml
to:cargo build
Expected behavior
cargo build
is successfulEnvironment:
master
1.77.0
Questionnaire
The text was updated successfully, but these errors were encountered: