summaryrefslogtreecommitdiff
path: root/core/es_isolate.rs
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2020-08-26 00:22:15 +0200
committerGitHub <noreply@github.com>2020-08-26 00:22:15 +0200
commit9bfb0df805719cb3f022a5b5d9f9d898ae954c2e (patch)
tree6c7d62d95fcbde54ebbe1035bdc74618c63cfbc0 /core/es_isolate.rs
parentd0ccab7fb7dd80030d3765ca9a9af44de6ecda5a (diff)
refactor: remove OpError, use ErrBox everywhere (#7187)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'core/es_isolate.rs')
-rw-r--r--core/es_isolate.rs3
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()
}
}