diff options
Diffstat (limited to 'core/es_isolate.rs')
-rw-r--r-- | core/es_isolate.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/es_isolate.rs b/core/es_isolate.rs index 3ede1a5e4..a829a3a3b 100644 --- a/core/es_isolate.rs +++ b/core/es_isolate.rs @@ -784,8 +784,7 @@ pub mod tests { _maybe_referrer: Option<ModuleSpecifier>, _is_dyn_import: bool, ) -> Pin<Box<ModuleSourceFuture>> { - async { Err(ErrBox::from(io::Error::from(io::ErrorKind::NotFound))) } - .boxed() + async { Err(io::Error::from(io::ErrorKind::NotFound).into()) }.boxed() } } |