mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-15 22:11:23 +00:00
Mark js_sys::Promise as #[must_use] (#1927)
* Mark js_sys::Promise as #[must_use] * Fix js_sys::Promise #[must_use] warnings
This commit is contained in:
committed by
Alex Crichton
parent
7ed152276f
commit
624ff42eae
@ -4567,6 +4567,7 @@ extern "C" {
|
||||
/// an asynchronous operation, and its resulting value.
|
||||
///
|
||||
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)
|
||||
#[must_use]
|
||||
#[wasm_bindgen(extends = Object)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub type Promise;
|
||||
|
Reference in New Issue
Block a user