diff options
-rw-r--r-- | src/commands/tree_of.rs | 9 | ||||
-rw-r--r-- | src/main.rs | 2 |
2 files changed, 2 insertions, 9 deletions
diff --git a/src/commands/tree_of.rs b/src/commands/tree_of.rs index a2ae0c5..b816d24 100644 --- a/src/commands/tree_of.rs +++ b/src/commands/tree_of.rs @@ -21,13 +21,11 @@ use crate::package::PackageName; use crate::package::PackageVersionConstraint; use crate::package::Dag; use crate::repository::Repository; -use crate::util::progress::ProgressBars; /// Implementation of the "tree_of" subcommand pub async fn tree_of( matches: &ArgMatches, repo: Repository, - progressbars: ProgressBars, ) -> Result<()> { let pname = matches .value_of("package_name") @@ -46,12 +44,7 @@ pub async fn tree_of( .map(|v| v.matches(p.version())) .unwrap_or(true) }) - .map(|package| { - let bar_tree_building = progressbars.bar(); - let tree = Dag::for_root_package(package.clone(), &repo, Some(&bar_tree_building))?; - bar_tree_building.finish_with_message("Finished loading Tree"); - Ok(tree) - }) + .map(|package| Dag::for_root_package(package.clone(), &repo, None)) .and_then_ok(|tree| { let stdout = std::io::stdout(); let mut outlock = stdout.lock(); diff --git a/src/main.rs b/src/main.rs index 59dd559..5ae443b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -234,7 +234,7 @@ async fn main() -> Result<()> { Some(("tree-of", matches)) => { let repo = load_repo()?; - crate::commands::tree_of(matches, repo, progressbars) + crate::commands::tree_of(matches, repo) .await .context("tree-of command failed")? } |