Closed ndarilek closed 2 years ago
I was just about to open this myself, thanks! I made an issue in wasm-bindgen here, because I don't think they realized the changes in 0.2.81 would be breaking.
@ndarilek and @JoelCourtney thanks for reporting, I hope we can fix it soon.
fixed in f284711f3fc4a9deebf70c9f0ce4d8ec1daca36f
Hello,
I'm using Seed for a wasm example in one of my projects, and noticed that it no longer builds with wasm-bindgen 0.2.81. 0.2.80 works fine. To duplicate, check out master, run
cargo update && cargo build
. The errors:error[E0283]: type annotations needed for
Closure<T>
--> src\browser\service\routing.rs:87:19
T
closure
the explicit typeClosure<T>
, where the type parameterT
is specifiedClosure::<T>::new
--> C:\Users\Nolan\scoop\persist\rustup.cargo\registry\src\github.com-1ecc6299db9ec823\wasm-bindgen-0.2.81\src\closure.rs:251:17
Closure::<T>::new
help: consider specifying the type argument in the function call
Closure<T>
--> src\browser\service\routing.rs:87:19
T
closure
the explicit typeClosure<T>
, where the type parameterT
is specifiedClosure::<T>::new
--> C:\Users\Nolan\scoop\persist\rustup.cargo\registry\src\github.com-1ecc6299db9ec823\wasm-bindgen-0.2.81\src\closure.rs:271:12
Closure::<T>::new
help: consider specifying the type argument in the function call
ClosureNew
--> src\app.rs:7:26
= note:
#[warn(unused_imports)]
on by defaultwarning: unused import:
ClosureNew
--> src\browser\service\routing.rs:2:18
|
2 | util::{self, ClosureNew},
| ^^^^^^^^^^
warning: unused import:
crate::browser::util::ClosureNew
--> src\virtual_dom\event_handler_manager\listener.rs:1:5
|
1 | use crate::browser::util::ClosureNew;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Thanks!