Skip to content

Commit

Permalink
Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ThinkChaos committed May 5, 2020
1 parent 359b41e commit 9970ca8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,7 @@ where
/// Note this trait is required because we cannot implement `FnMut`
/// for custom types yet.
/// If we could, `FilterPredicateAdapter` would implement `FnMut`
// `TryFilterEntry` could just use `FnMut` and not
/// `TryFilterEntry` could just use `FnMut` and not
/// this trait, and .
///
/// [`TryFilterEntry`]: struct.TryFilterEntry.html
Expand Down
14 changes: 5 additions & 9 deletions src/tests/recursive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -884,9 +884,9 @@ fn try_filter_entry() {
dir.mkdirp("foo/bar/baz/abc");
dir.mkdirp("quux");

let wd = WalkDir::new(dir.path())
.into_iter()
.try_filter_entry(|res| matches!(res, Ok(ent) if ent.file_name() != "baz"));
let wd = WalkDir::new(dir.path()).into_iter().try_filter_entry(
|res| matches!(res, Ok(ent) if ent.file_name() != "baz"),
);
let r = dir.run_recursive(wd);
r.assert_no_errors();

Expand All @@ -911,9 +911,7 @@ fn try_filter_entry_skip_error() {
let r = dir.run_recursive(wd);
r.assert_no_errors();

let expected = vec![
dir.path().to_path_buf(),
];
let expected = vec![dir.path().to_path_buf()];
assert_eq!(expected, r.sorted_paths());
}

Expand Down Expand Up @@ -948,9 +946,7 @@ fn filter_composition() {
let r = dir.run_recursive(wd);
r.assert_no_errors();

let expected = vec![
dir.path().to_path_buf(),
];
let expected = vec![dir.path().to_path_buf()];
assert_eq!(expected, r.sorted_paths());
}

Expand Down

0 comments on commit 9970ca8

Please sign in to comment.