Use dyn with all trait objects

Fixes new warnings showing up on nightly nowadays.
This commit is contained in:
Alex Crichton
2019-06-03 08:26:14 -07:00
parent f3adee7056
commit 82467f9793
15 changed files with 144 additions and 144 deletions

View File

@ -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(());