Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jcaesar authored and harryfei committed Mar 23, 2023
1 parent 6d0a81c commit e5ec711
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,7 @@ fn test_which_re_in_with_matches() {
f.mk_bin("b/bin_1", "").unwrap();
let re = Regex::new(r"bin_\d").unwrap();

let result: Vec<PathBuf> = which::which_re_in(re, Some(f.paths))
.unwrap()
.into_iter()
.collect();
let result: Vec<PathBuf> = which::which_re_in(re, Some(f.paths)).unwrap().collect();

let temp = f.tempdir;

Expand All @@ -163,10 +160,7 @@ fn test_which_re_in_without_matches() {
let f = TestFixture::new();
let re = Regex::new(r"bi[^n]").unwrap();

let result: Vec<PathBuf> = which::which_re_in(re, Some(f.paths))
.unwrap()
.into_iter()
.collect();
let result: Vec<PathBuf> = which::which_re_in(re, Some(f.paths)).unwrap().collect();

assert_eq!(result, Vec::<PathBuf>::new())
}
Expand Down

0 comments on commit e5ec711

Please sign in to comment.