File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ impl From<Promise> for JsFuture {
158
158
Closure :: once ( move |val| finish ( & state, Err ( val) ) )
159
159
} ;
160
160
161
- js. then2 ( & resolve, & reject) ;
161
+ let _ = js. then2 ( & resolve, & reject) ;
162
162
163
163
state. borrow_mut ( ) . callbacks = Some ( ( resolve, reject) ) ;
164
164
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ impl Queue {
56
56
// eventually we should probably use something like `queueMicrotask`:
57
57
// https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/queueMicrotask
58
58
if !self . state . is_spinning . replace ( true ) {
59
- self . promise . then ( & self . closure ) ;
59
+ let _ = self . promise . then ( & self . closure ) ;
60
60
}
61
61
}
62
62
}
Original file line number Diff line number Diff line change @@ -4567,6 +4567,7 @@ extern "C" {
4567
4567
/// an asynchronous operation, and its resulting value.
4568
4568
///
4569
4569
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)
4570
+ #[ must_use]
4570
4571
#[ wasm_bindgen( extends = Object ) ]
4571
4572
#[ derive( Clone , Debug ) ]
4572
4573
pub type Promise ;
You can’t perform that action at this time.
0 commit comments