intendednull / yewdux

Ergonomic state management for Yew applications
https://intendednull.github.io/yewdux/
Apache License 2.0
319 stars 31 forks source link

anymap v1.0.0-beta.2 Future incompatability warnings #78

Open gausstop opened 3 hours ago

gausstop commented 3 hours ago

The package anymap v1.0.0-beta.2 currently triggers the following future incompatibility lints:

warning: adding an auto trait Send to a trait object in a pointer cast may cause UB later on --> /home/sh/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/anymap-1.0.0-beta.2/src/any.rs:37:40 37 unsafe { Box::from_raw(raw as *mut $t) } ^^^^^^^^^^^^^^ ... 144 impl_clone!(dyn CloneAny + Send); -------------------------------- in this macro invocation
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #127323 <https://github.com/rust-lang/rust/issues/127323>
= note: this warning originates in the macro `impl_clone` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: adding auto traits Send and Sync to a trait object in a pointer cast may cause UB later on --> /home/sh/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/anymap-1.0.0-beta.2/src/any.rs:37:40 37 unsafe { Box::from_raw(raw as *mut $t) } ^^^^^^^^^^^^^^ ... 145 impl_clone!(dyn CloneAny + Send + Sync); --------------------------------------- in this macro invocation
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #127323 <https://github.com/rust-lang/rust/issues/127323>
= note: this warning originates in the macro `impl_clone` (in Nightly builds, run with -Z macro-backtrace for more info)
gausstop commented 3 hours ago

How about switch to anymap2?