mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-16 14:31:22 +00:00
Use dyn
with all trait objects
Fixes new warnings showing up on nightly nowadays.
This commit is contained in:
@ -1086,7 +1086,7 @@ impl<'a> Context<'a> {
|
||||
fn bind(
|
||||
&mut self,
|
||||
name: &str,
|
||||
f: &Fn(&mut Self) -> Result<String, Error>,
|
||||
f: &dyn Fn(&mut Self) -> Result<String, Error>,
|
||||
) -> Result<(), Error> {
|
||||
if !self.wasm_import_needed(name) {
|
||||
return Ok(());
|
||||
|
Reference in New Issue
Block a user