@@ -1169,7 +1169,7 @@ mod test {
11691169 }
11701170 for c in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" . chars ( ) {
11711171 let options = MatchOptions { case_sensitive : false , ..MatchOptions :: new ( ) } ;
1172- assert ! ( pat. matches_with( & c. to_string( ) , & options) ) ;
1172+ assert ! ( pat. matches_with( & c. to_string( ) , options) ) ;
11731173 }
11741174 assert ! ( pat. matches( "1" ) ) ;
11751175 assert ! ( pat. matches( "2" ) ) ;
@@ -1229,10 +1229,10 @@ mod test {
12291229 require_literal_leading_dot : false ,
12301230 } ;
12311231
1232- assert ! ( pat. matches_with( "aBcDeFg" , & options) ) ;
1233- assert ! ( pat. matches_with( "abcdefg" , & options) ) ;
1234- assert ! ( pat. matches_with( "ABCDEFG" , & options) ) ;
1235- assert ! ( pat. matches_with( "AbCdEfG" , & options) ) ;
1232+ assert ! ( pat. matches_with( "aBcDeFg" , options) ) ;
1233+ assert ! ( pat. matches_with( "abcdefg" , options) ) ;
1234+ assert ! ( pat. matches_with( "ABCDEFG" , options) ) ;
1235+ assert ! ( pat. matches_with( "AbCdEfG" , options) ) ;
12361236 }
12371237
12381238 #[ test]
@@ -1252,13 +1252,13 @@ mod test {
12521252 require_literal_leading_dot : false ,
12531253 } ;
12541254
1255- assert ! ( pat_within. matches_with( "a" , & options_case_insensitive) ) ;
1256- assert ! ( pat_within. matches_with( "A" , & options_case_insensitive) ) ;
1257- assert ! ( !pat_within. matches_with( "A" , & options_case_sensitive) ) ;
1255+ assert ! ( pat_within. matches_with( "a" , options_case_insensitive) ) ;
1256+ assert ! ( pat_within. matches_with( "A" , options_case_insensitive) ) ;
1257+ assert ! ( !pat_within. matches_with( "A" , options_case_sensitive) ) ;
12581258
1259- assert ! ( !pat_except. matches_with( "a" , & options_case_insensitive) ) ;
1260- assert ! ( !pat_except. matches_with( "A" , & options_case_insensitive) ) ;
1261- assert ! ( pat_except. matches_with( "A" , & options_case_sensitive) ) ;
1259+ assert ! ( !pat_except. matches_with( "a" , options_case_insensitive) ) ;
1260+ assert ! ( !pat_except. matches_with( "A" , options_case_insensitive) ) ;
1261+ assert ! ( pat_except. matches_with( "A" , options_case_sensitive) ) ;
12621262 }
12631263
12641264 #[ test]
@@ -1275,29 +1275,29 @@ mod test {
12751275 require_literal_leading_dot : false ,
12761276 } ;
12771277
1278- assert ! ( Pattern :: new( "abc/def" ) . unwrap( ) . matches_with( "abc/def" , & options_require_literal) ) ;
1278+ assert ! ( Pattern :: new( "abc/def" ) . unwrap( ) . matches_with( "abc/def" , options_require_literal) ) ;
12791279 assert ! ( !Pattern :: new( "abc?def" )
12801280 . unwrap( )
1281- . matches_with( "abc/def" , & options_require_literal) ) ;
1281+ . matches_with( "abc/def" , options_require_literal) ) ;
12821282 assert ! ( !Pattern :: new( "abc*def" )
12831283 . unwrap( )
1284- . matches_with( "abc/def" , & options_require_literal) ) ;
1284+ . matches_with( "abc/def" , options_require_literal) ) ;
12851285 assert ! ( !Pattern :: new( "abc[/]def" )
12861286 . unwrap( )
1287- . matches_with( "abc/def" , & options_require_literal) ) ;
1287+ . matches_with( "abc/def" , options_require_literal) ) ;
12881288
12891289 assert ! ( Pattern :: new( "abc/def" )
12901290 . unwrap( )
1291- . matches_with( "abc/def" , & options_not_require_literal) ) ;
1291+ . matches_with( "abc/def" , options_not_require_literal) ) ;
12921292 assert ! ( Pattern :: new( "abc?def" )
12931293 . unwrap( )
1294- . matches_with( "abc/def" , & options_not_require_literal) ) ;
1294+ . matches_with( "abc/def" , options_not_require_literal) ) ;
12951295 assert ! ( Pattern :: new( "abc*def" )
12961296 . unwrap( )
1297- . matches_with( "abc/def" , & options_not_require_literal) ) ;
1297+ . matches_with( "abc/def" , options_not_require_literal) ) ;
12981298 assert ! ( Pattern :: new( "abc[/]def" )
12991299 . unwrap( )
1300- . matches_with( "abc/def" , & options_not_require_literal) ) ;
1300+ . matches_with( "abc/def" , options_not_require_literal) ) ;
13011301 }
13021302
13031303 #[ test]
@@ -1315,38 +1315,38 @@ mod test {
13151315 } ;
13161316
13171317 let f = |options| Pattern :: new ( "*.txt" ) . unwrap ( ) . matches_with ( ".hello.txt" , options) ;
1318- assert ! ( f( & options_not_require_literal_leading_dot) ) ;
1319- assert ! ( !f( & options_require_literal_leading_dot) ) ;
1318+ assert ! ( f( options_not_require_literal_leading_dot) ) ;
1319+ assert ! ( !f( options_require_literal_leading_dot) ) ;
13201320
13211321 let f = |options| Pattern :: new ( ".*.*" ) . unwrap ( ) . matches_with ( ".hello.txt" , options) ;
1322- assert ! ( f( & options_not_require_literal_leading_dot) ) ;
1323- assert ! ( f( & options_require_literal_leading_dot) ) ;
1322+ assert ! ( f( options_not_require_literal_leading_dot) ) ;
1323+ assert ! ( f( options_require_literal_leading_dot) ) ;
13241324
13251325 let f = |options| Pattern :: new ( "aaa/bbb/*" ) . unwrap ( ) . matches_with ( "aaa/bbb/.ccc" , options) ;
1326- assert ! ( f( & options_not_require_literal_leading_dot) ) ;
1327- assert ! ( !f( & options_require_literal_leading_dot) ) ;
1326+ assert ! ( f( options_not_require_literal_leading_dot) ) ;
1327+ assert ! ( !f( options_require_literal_leading_dot) ) ;
13281328
13291329 let f = |options| {
13301330 Pattern :: new ( "aaa/bbb/*" ) . unwrap ( ) . matches_with ( "aaa/bbb/c.c.c." , options)
13311331 } ;
1332- assert ! ( f( & options_not_require_literal_leading_dot) ) ;
1333- assert ! ( f( & options_require_literal_leading_dot) ) ;
1332+ assert ! ( f( options_not_require_literal_leading_dot) ) ;
1333+ assert ! ( f( options_require_literal_leading_dot) ) ;
13341334
13351335 let f = |options| Pattern :: new ( "aaa/bbb/.*" ) . unwrap ( ) . matches_with ( "aaa/bbb/.ccc" , options) ;
1336- assert ! ( f( & options_not_require_literal_leading_dot) ) ;
1337- assert ! ( f( & options_require_literal_leading_dot) ) ;
1336+ assert ! ( f( options_not_require_literal_leading_dot) ) ;
1337+ assert ! ( f( options_require_literal_leading_dot) ) ;
13381338
13391339 let f = |options| Pattern :: new ( "aaa/?bbb" ) . unwrap ( ) . matches_with ( "aaa/.bbb" , options) ;
1340- assert ! ( f( & options_not_require_literal_leading_dot) ) ;
1341- assert ! ( !f( & options_require_literal_leading_dot) ) ;
1340+ assert ! ( f( options_not_require_literal_leading_dot) ) ;
1341+ assert ! ( !f( options_require_literal_leading_dot) ) ;
13421342
13431343 let f = |options| Pattern :: new ( "aaa/[.]bbb" ) . unwrap ( ) . matches_with ( "aaa/.bbb" , options) ;
1344- assert ! ( f( & options_not_require_literal_leading_dot) ) ;
1345- assert ! ( !f( & options_require_literal_leading_dot) ) ;
1344+ assert ! ( f( options_not_require_literal_leading_dot) ) ;
1345+ assert ! ( !f( options_require_literal_leading_dot) ) ;
13461346
13471347 let f = |options| Pattern :: new ( "**/*" ) . unwrap ( ) . matches_with ( ".bbb" , options) ;
1348- assert ! ( f( & options_not_require_literal_leading_dot) ) ;
1349- assert ! ( !f( & options_require_literal_leading_dot) ) ;
1348+ assert ! ( f( options_not_require_literal_leading_dot) ) ;
1349+ assert ! ( !f( options_require_literal_leading_dot) ) ;
13501350 }
13511351
13521352 #[ test]
0 commit comments