File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -477,7 +477,12 @@ mod tests {
477477 // At the browser level, session is global and should appear in global_args
478478 let v = describe_path ( & [ "browser" ] ) ;
479479 let global = v[ "global_args" ] . as_array ( ) . unwrap ( ) ;
480- assert ! ( global. iter( ) . map( |g| g[ "name" ] . as_str( ) . unwrap( ) ) . any( |x| x == "session" ) ) ;
480+ assert ! (
481+ global
482+ . iter( )
483+ . map( |g| g[ "name" ] . as_str( ) . unwrap( ) )
484+ . any( |x| x == "session" )
485+ ) ;
481486
482487 // At the root level, json and local are global
483488 let root = describe_path ( & [ ] ) ;
@@ -491,14 +496,24 @@ mod tests {
491496
492497 // Global args should not appear in subcommand list
493498 let subs = root[ "subcommands" ] . as_array ( ) . unwrap ( ) ;
494- assert ! ( !subs. iter( ) . map( |s| s[ "name" ] . as_str( ) . unwrap( ) ) . any( |x| x == "json" ) ) ;
499+ assert ! (
500+ !subs
501+ . iter( )
502+ . map( |s| s[ "name" ] . as_str( ) . unwrap( ) )
503+ . any( |x| x == "json" )
504+ ) ;
495505 }
496506
497507 #[ test]
498508 fn hidden_args_excluded ( ) {
499509 let v = describe_path ( & [ ] ) ;
500510 let global = v[ "global_args" ] . as_array ( ) . unwrap ( ) ;
501511 // no-update-check is hidden
502- assert ! ( !global. iter( ) . map( |g| g[ "name" ] . as_str( ) . unwrap( ) ) . any( |x| x == "no-update-check" ) ) ;
512+ assert ! (
513+ !global
514+ . iter( )
515+ . map( |g| g[ "name" ] . as_str( ) . unwrap( ) )
516+ . any( |x| x == "no-update-check" )
517+ ) ;
503518 }
504519}
You can’t perform that action at this time.
0 commit comments