diff options
Diffstat (limited to 'core/isolate.rs')
-rw-r--r-- | core/isolate.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/isolate.rs b/core/isolate.rs index 1ba86d727..cdb505342 100644 --- a/core/isolate.rs +++ b/core/isolate.rs @@ -76,10 +76,10 @@ pub enum StartupData<'a> { pub type OpResult<E> = Result<Op<E>, E>; -type CoreDispatchFn = Fn(&[u8], Option<PinnedBuf>) -> CoreOp; +type CoreDispatchFn = dyn Fn(&[u8], Option<PinnedBuf>) -> CoreOp; pub type DynImportFuture = Box<dyn Future<Item = deno_mod, Error = ()> + Send>; -type DynImportFn = Fn(&str, &str) -> DynImportFuture; +type DynImportFn = dyn Fn(&str, &str) -> DynImportFuture; /// Wraps DynImportFuture to include the deno_dyn_import_id, so that it doesn't /// need to be exposed. |