File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -841,8 +841,8 @@ impl Pattern {
841
841
false
842
842
}
843
843
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) ,
846
846
Char ( c2) => chars_eq ( c, c2, options. case_sensitive ) ,
847
847
AnySequence | AnyRecursiveSequence => unreachable ! ( ) ,
848
848
} {
@@ -1488,12 +1488,12 @@ mod test {
1488
1488
fn test_matches_path ( ) {
1489
1489
// on windows, (Path::new("a/b").as_str().unwrap() == "a\\b"), so this
1490
1490
// 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" ) ) ) ;
1492
1492
}
1493
1493
1494
1494
#[ test]
1495
1495
fn test_path_join ( ) {
1496
- let pattern = Path :: new ( "one" ) . join ( & Path :: new ( "**/*.rs" ) ) ;
1496
+ let pattern = Path :: new ( "one" ) . join ( Path :: new ( "**/*.rs" ) ) ;
1497
1497
assert ! ( Pattern :: new( pattern. to_str( ) . unwrap( ) ) . is_ok( ) ) ;
1498
1498
}
1499
1499
}
You can’t perform that action at this time.
0 commit comments