Skip to content

Commit

Permalink
fix the warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tamada committed Apr 30, 2024
1 parent 6e87cb2 commit 6222dfe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,12 @@ mod tests {

let mut cli3 = CliOpts::parse_from(&["totebag_test", "src.zip", "LICENSE.tar", "README.tar.bz2", "hoge.rar"]);
let r3 = cli3.run_mode();
assert!(r3.is_ok());
assert_eq!(cli3.run_mode().unwrap(), RunMode::Extract);

let mut cli4 = CliOpts::parse_from(&["totebag_test", "src.zip", "LICENSE.tar", "README.tar.bz2", "hoge.rar", "--mode", "list"]);
let r4 = cli3.run_mode();
assert!(r4.is_ok());
assert_eq!(cli4.run_mode().unwrap(), RunMode::List);
}

Expand Down
3 changes: 1 addition & 2 deletions src/extractor/rar.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use std::fmt::Debug;
use std::fs::create_dir_all;
use std::path::PathBuf;

use crate::format::Format;
use crate::cli::{Result, ToatError};
use crate::cli::Result;
use crate::extractor::{ExtractorOpts, Extractor};

pub(super) struct RarExtractor {
Expand Down
2 changes: 1 addition & 1 deletion src/extractor/tar.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::fs::{copy, create_dir_all};
use std::fs::create_dir_all;
use std::io::Read;
use std::{fs::File, path::PathBuf};

Expand Down

0 comments on commit 6222dfe

Please sign in to comment.