Skip to content

Commit 1352525

Browse files
committed
Remove useless references
1 parent 25902a9 commit 1352525

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -841,8 +841,8 @@ impl Pattern {
841841
false
842842
}
843843
AnyChar => true,
844-
AnyWithin(ref specifiers) => in_char_specifiers(&specifiers, c, options),
845-
AnyExcept(ref specifiers) => !in_char_specifiers(&specifiers, c, options),
844+
AnyWithin(ref specifiers) => in_char_specifiers(specifiers, c, options),
845+
AnyExcept(ref specifiers) => !in_char_specifiers(specifiers, c, options),
846846
Char(c2) => chars_eq(c, c2, options.case_sensitive),
847847
AnySequence | AnyRecursiveSequence => unreachable!(),
848848
} {
@@ -1488,12 +1488,12 @@ mod test {
14881488
fn test_matches_path() {
14891489
// on windows, (Path::new("a/b").as_str().unwrap() == "a\\b"), so this
14901490
// tests that / and \ are considered equivalent on windows
1491-
assert!(Pattern::new("a/b").unwrap().matches_path(&Path::new("a/b")));
1491+
assert!(Pattern::new("a/b").unwrap().matches_path(Path::new("a/b")));
14921492
}
14931493

14941494
#[test]
14951495
fn test_path_join() {
1496-
let pattern = Path::new("one").join(&Path::new("**/*.rs"));
1496+
let pattern = Path::new("one").join(Path::new("**/*.rs"));
14971497
assert!(Pattern::new(pattern.to_str().unwrap()).is_ok());
14981498
}
14991499
}

0 commit comments

Comments
 (0)