diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-05-30 11:07:58 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-06-25 06:32:28 -0700 |
commit | 3a4d88475b40a17f2ce17b775a3f07c78be83d79 (patch) | |
tree | 2780e2c7ea86c0a7e039cfc3e478bd82131a467e /cli/deno_dir.rs | |
parent | 89216c7baaab8ade3daf9103572647addeb404f3 (diff) |
Port code from Cargo and use for progress
A lot of its functionality is unused still, but the goal it to slowly
migrate logging functionality to it. There is also a useful progress bar
which can be ported over later - it depends on this module.
https://github.com/rust-lang/cargo/blob/4c1fa54d10f58d69ac9ff55be68e1b1c25ecb816/src/cargo/util/progress.rs
Diffstat (limited to 'cli/deno_dir.rs')
-rw-r--r-- | cli/deno_dir.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cli/deno_dir.rs b/cli/deno_dir.rs index 8695b0578..324aa0e32 100644 --- a/cli/deno_dir.rs +++ b/cli/deno_dir.rs @@ -647,9 +647,7 @@ fn fetch_remote_source_async( ) -> impl Future<Item = Option<ModuleMetaData>, Error = DenoError> { use crate::http_util::FetchOnceResult; - let download_job = deno_dir - .progress - .add(format!("Downloading {}", module_name)); + let download_job = deno_dir.progress.add("Download", module_name); let module_name = module_name.to_owned(); let filepath = filepath.to_owned(); |