File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments