When running Cargo make build, the build is failing due to the following error. This may not be the place to resolve this but I have looked all over and I do not see anybody discussing this. Please advise:
error[E0283]: type annotations needed for Closure<T>
--> C:\Users\Me.cargo\registry\src\github.com-1ecc6299db9ec823\seed-0.6.0\src\browser\service\routing.rs:113:9
|
113 | let closure = Closure::new(move |event: web_sys::Event| {
| ^^^^^^^
|
= note: cannot satisfy _: WasmClosure
note: required by a bound in Closure::<T>::new
--> C:\Users\Me.cargo\registry\src\github.com-1ecc6299db9ec823\wasm-bindgen-0.2.82\src\closure.rs:251:17
|
251 | T: ?Sized + WasmClosure,
| ^^^^^^^^^^^ required by this bound in Closure::<T>::new
help: consider giving closure an explicit type, where the type for type parameter T is specified
|
113 | let closure: Closure = Closure::new(move |event: web_sys::Event| {
| ++++++++++++
help: consider specifying the type argument in the function call
|
113 | let closure = Closure::new::(move |event: web_sys::Event| {
| +++++
error[E0283]: type annotations needed for Closure<T>
--> C:\Users\Me.cargo\registry\src\github.com-1ecc6299db9ec823\seed-0.6.0\src\browser\service\routing.rs:113:9
|
113 | let closure = Closure::new(move |event: web_sys::Event| {
| ^^^^^^^
|
= note: multiple impls satisfying [closure@C:\Users\Me\.cargo\registry\src\github.com-1ecc6299db9ec823\seed-0.6.0\src\browser\service\routing.rs:113:32: 150:6]: IntoWasmClosure<_> found in the wasm_bindgen crate:
- impl<T, A, R> IntoWasmClosure<(dyn Fn(A) -> R + 'static)> for T
where <T as FnOnce<(A,)>>::Output == R, T: 'static, T: Fn<(A,)>, A: 'static, A: FromWasmAbi, R: 'static, R: ReturnWasmAbi;
- impl<T, A, R> IntoWasmClosure<(dyn FnMut(A) -> R + 'static)> for T
where <T as FnOnce<(A,)>>::Output == R, T: 'static, T: FnMut<(A,)>, A: 'static, A: FromWasmAbi, R: 'static, R: ReturnWasmAbi;
note: required by a bound in Closure::<T>::new
--> C:\Users\Me.cargo\registry\src\github.com-1ecc6299db9ec823\wasm-bindgen-0.2.82\src\closure.rs:271:12
|
271 | F: IntoWasmClosure + 'static,
| ^^^^^^^^^^^^^^^^^^ required by this bound in Closure::<T>::new
help: consider giving closure an explicit type, where the type for type parameter T is specified
|
113 | let closure: Closure = Closure::new(move |event: web_sys::Event| {
| ++++++++++++
help: consider specifying the type argument in the function call
|
113 | let closure = Closure::new::(move |event: web_sys::Event| {
| +++++
For more information about this error, try rustc --explain E0283.
error: could not compile seed due to 2 previous errors
[cargo-make] ERROR - Error while executing command, exit code: 101
[cargo-make] WARN - Build Failed.
When running Cargo make build, the build is failing due to the following error. This may not be the place to resolve this but I have looked all over and I do not see anybody discussing this. Please advise:
error[E0283]: type annotations needed for
Closure<T>--> C:\Users\Me.cargo\registry\src\github.com-1ecc6299db9ec823\seed-0.6.0\src\browser\service\routing.rs:113:9
|
113 | let closure = Closure::new(move |event: web_sys::Event| {
| ^^^^^^^
|
= note: cannot satisfy
_: WasmClosurenote: required by a bound in
Closure::<T>::new--> C:\Users\Me.cargo\registry\src\github.com-1ecc6299db9ec823\wasm-bindgen-0.2.82\src\closure.rs:251:17
|
251 | T: ?Sized + WasmClosure,
| ^^^^^^^^^^^ required by this bound in
Closure::<T>::newhelp: consider giving
closurean explicit type, where the type for type parameterTis specified|
113 | let closure: Closure = Closure::new(move |event: web_sys::Event| {
| ++++++++++++
help: consider specifying the type argument in the function call
|
113 | let closure = Closure::new::(move |event: web_sys::Event| {
| +++++
error[E0283]: type annotations needed for
Closure<T>--> C:\Users\Me.cargo\registry\src\github.com-1ecc6299db9ec823\seed-0.6.0\src\browser\service\routing.rs:113:9
|
113 | let closure = Closure::new(move |event: web_sys::Event| {
| ^^^^^^^
|
= note: multiple
impls satisfying[closure@C:\Users\Me\.cargo\registry\src\github.com-1ecc6299db9ec823\seed-0.6.0\src\browser\service\routing.rs:113:32: 150:6]: IntoWasmClosure<_>found in thewasm_bindgencrate:- impl<T, A, R> IntoWasmClosure<(dyn Fn(A) -> R + 'static)> for T
where <T as FnOnce<(A,)>>::Output == R, T: 'static, T: Fn<(A,)>, A: 'static, A: FromWasmAbi, R: 'static, R: ReturnWasmAbi;
- impl<T, A, R> IntoWasmClosure<(dyn FnMut(A) -> R + 'static)> for T
where <T as FnOnce<(A,)>>::Output == R, T: 'static, T: FnMut<(A,)>, A: 'static, A: FromWasmAbi, R: 'static, R: ReturnWasmAbi;
note: required by a bound in
Closure::<T>::new--> C:\Users\Me.cargo\registry\src\github.com-1ecc6299db9ec823\wasm-bindgen-0.2.82\src\closure.rs:271:12
|
271 | F: IntoWasmClosure + 'static,
| ^^^^^^^^^^^^^^^^^^ required by this bound in
Closure::<T>::newhelp: consider giving
closurean explicit type, where the type for type parameterTis specified|
113 | let closure: Closure = Closure::new(move |event: web_sys::Event| {
| ++++++++++++
help: consider specifying the type argument in the function call
|
113 | let closure = Closure::new::(move |event: web_sys::Event| {
| +++++
For more information about this error, try
rustc --explain E0283.error: could not compile
seeddue to 2 previous errors[cargo-make] ERROR - Error while executing command, exit code: 101
[cargo-make] WARN - Build Failed.