diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-07-31 13:58:41 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-07-31 11:58:41 +0000 |
commit | 421cbd39b4f0fdbdfc2eeed6da8dd3410246a044 (patch) | |
tree | add5b11671f8275323ab9d159962a9065d5ff8aa /cli/worker.rs | |
parent | ef63ec763a142f1e96e12e21d27ffae439f84ffd (diff) |
factor out FileFetcher to separate module (#2683)
* merge SourceFileFetcher trait and FileFetcher struct
* move logic related to source file fetching to //cli/file_fetcher.rs
* use Result when creating new ThreadSafeState
Diffstat (limited to 'cli/worker.rs')
-rw-r--r-- | cli/worker.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cli/worker.rs b/cli/worker.rs index 71a42dd8d..e32e1e06e 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -126,7 +126,7 @@ mod tests { argv, op_selector_std, Progress::new(), - ); + ).unwrap(); let state_ = state.clone(); tokio_util::run(lazy(move || { let mut worker = @@ -154,7 +154,7 @@ mod tests { argv, op_selector_std, Progress::new(), - ); + ).unwrap(); let state_ = state.clone(); tokio_util::run(lazy(move || { let mut worker = @@ -180,7 +180,8 @@ mod tests { let mut flags = flags::DenoFlags::default(); flags.reload = true; let state = - ThreadSafeState::new(flags, argv, op_selector_std, Progress::new()); + ThreadSafeState::new(flags, argv, op_selector_std, Progress::new()) + .unwrap(); let state_ = state.clone(); tokio_util::run(lazy(move || { let mut worker = Worker::new( |