Skip to content

Commit

Permalink
Remove logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmaSd committed Dec 20, 2021
1 parent 19081ca commit f6ce7d8
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/list.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
//! Implementation of the 'list' command, print list of files in an archive
use std::{
io::Write,
path::{Path, PathBuf},
};
use std::path::{Path, PathBuf};

use self::tree::Tree;
use crate::info;

/// Options controlling how archive contents should be listed
#[derive(Debug, Clone, Copy)]
Expand Down Expand Up @@ -35,14 +31,7 @@ pub fn list_files(
println!("Archive: {}", archive.display());

if list_options.tree {
let tree: Tree = files
.into_iter()
.map(|file| {
let file = file?;
info!(inaccessible, "Processing file: {}", file.path.display());
Ok(file)
})
.collect::<crate::Result<Tree>>()?;
let tree: Tree = files.into_iter().collect::<crate::Result<Tree>>()?;
tree.print();
} else {
for file in files {
Expand Down

0 comments on commit f6ce7d8

Please sign in to comment.