diff options
author | Bert Belder <bertbelder@gmail.com> | 2020-09-14 18:48:57 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2020-09-15 01:50:52 +0200 |
commit | f5b40c918c7d602827622d167728a3e7bae87d9d (patch) | |
tree | fb51722e043f4d6bce64a2c7e897cce4ead06c82 /cli/web_worker.rs | |
parent | 3da20d19a14ab6838897d281f1b11e49d68bd1a7 (diff) |
refactor: use the 'anyhow' crate instead of 'ErrBox' (#7476)
Diffstat (limited to 'cli/web_worker.rs')
-rw-r--r-- | cli/web_worker.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/web_worker.rs b/cli/web_worker.rs index b0990d313..fac7946a6 100644 --- a/cli/web_worker.rs +++ b/cli/web_worker.rs @@ -6,8 +6,8 @@ use crate::state::State; use crate::worker::Worker; use crate::worker::WorkerEvent; use crate::worker::WorkerHandle; +use deno_core::error::AnyError; use deno_core::v8; -use deno_core::ErrBox; use futures::channel::mpsc; use futures::future::FutureExt; use futures::stream::StreamExt; @@ -164,7 +164,7 @@ impl DerefMut for WebWorker { } impl Future for WebWorker { - type Output = Result<(), ErrBox>; + type Output = Result<(), AnyError>; fn poll(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Self::Output> { let inner = self.get_mut(); |