From 88ba148efd5c338cf8341023fb4038a57d1bf369 Mon Sep 17 00:00:00 2001 From: specCon18 Date: Wed, 30 Aug 2023 10:19:59 -0400 Subject: [PATCH] Refactored --- src/main.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 81b2e9c..5da0554 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,10 +1,7 @@ use clap::{App, Arg}; -use crossterm::style::{Color, Print, ResetColor, SetForegroundColor}; -use crossterm::ExecutableCommand; +use crossterm::style::{Color, Print, ResetColor, SetForegroundColor,ExecutableCommand}; use indicatif::{ProgressBar, ProgressStyle}; -use std::io::stdout; -use std::path::Path; -use std::process::Command; +use std::{io::stdout, path::Path, process::Command}; fn main() -> color_eyre::eyre::Result<()> { color_eyre::install()?; @@ -16,7 +13,6 @@ fn main() -> color_eyre::eyre::Result<()> { .help("Files to be extracted"), ); -use rayon::prelude::*; let matches = app.get_matches(); let files: Vec<_> = matches.values_of("files").unwrap().collect(); let pb = ProgressBar::new(files.len() as u64);