@@ -437,7 +437,11 @@ mod tests {
437437 #[ test]
438438 fn all_controller_schemas_entries_are_all_under_webhooks_namespace ( ) {
439439 for s in all_controller_schemas ( ) {
440- assert_eq ! ( s. namespace, "webhooks" , "schema `{}` has wrong namespace" , s. function) ;
440+ assert_eq ! (
441+ s. namespace, "webhooks" ,
442+ "schema `{}` has wrong namespace" ,
443+ s. function
444+ ) ;
441445 assert ! (
442446 !s. description. trim( ) . is_empty( ) ,
443447 "schema `{}` must have a description" ,
@@ -472,13 +476,21 @@ mod tests {
472476 clone. dedup ( ) ;
473477 clone. len ( )
474478 } ;
475- assert_eq ! ( unique_count, names. len( ) , "duplicate function names: {names:?}" ) ;
479+ assert_eq ! (
480+ unique_count,
481+ names. len( ) ,
482+ "duplicate function names: {names:?}"
483+ ) ;
476484 }
477485
478486 // ── schemas(function) per-arm coverage ───────────────────────
479487
480488 fn required_input_names ( s : & ControllerSchema ) -> Vec < & ' static str > {
481- s. inputs . iter ( ) . filter ( |f| f. required ) . map ( |f| f. name ) . collect ( )
489+ s. inputs
490+ . iter ( )
491+ . filter ( |f| f. required )
492+ . map ( |f| f. name )
493+ . collect ( )
482494 }
483495
484496 #[ test]
@@ -519,7 +531,9 @@ mod tests {
519531 . find ( |f| f. name == optional)
520532 . unwrap_or_else ( || panic ! ( "missing optional `{optional}`" ) ) ;
521533 assert ! ( !f. required) ;
522- assert ! ( matches!( & f. ty, TypeSchema :: Option ( inner) if matches!( * * inner, TypeSchema :: String ) ) ) ;
534+ assert ! (
535+ matches!( & f. ty, TypeSchema :: Option ( inner) if matches!( * * inner, TypeSchema :: String ) )
536+ ) ;
523537 }
524538 }
525539
@@ -538,7 +552,10 @@ mod tests {
538552 fn create_tunnel_requires_name_and_allows_optional_description ( ) {
539553 let s = schemas ( "create_tunnel" ) ;
540554 assert_eq ! ( required_input_names( & s) , vec![ "name" ] ) ;
541- assert ! ( s. inputs. iter( ) . any( |f| f. name == "description" && !f. required) ) ;
555+ assert ! ( s
556+ . inputs
557+ . iter( )
558+ . any( |f| f. name == "description" && !f. required) ) ;
542559 }
543560
544561 #[ test]
0 commit comments