@@ -315,19 +315,19 @@ impl Generator {
315315 OperationParameterKind :: Body ( _) => unreachable ! ( ) ,
316316 } ;
317317
318- let OperationParameterType :: Type ( arg_type_id) = & param. typ else {
318+ let OperationParameterType :: Type ( arg_type_id) = & param. typ
319+ else {
319320 panic ! ( )
320321 } ;
321322 let arg_type = self . type_space . get_type ( arg_type_id) . unwrap ( ) ;
322323 let arg_details = arg_type. details ( ) ;
323- let arg_type_name = match & arg_details{
324+ let arg_type_name = match & arg_details {
324325 typify:: TypeDetails :: Option ( opt_id) => {
325- let inner_type = self . type_space . get_type ( opt_id) . unwrap ( ) ;
326+ let inner_type =
327+ self . type_space . get_type ( opt_id) . unwrap ( ) ;
326328 inner_type. ident ( )
327329 }
328- _ => {
329- arg_type. ident ( )
330- }
330+ _ => arg_type. ident ( ) ,
331331 } ;
332332
333333 let help = param. description . as_ref ( ) . map ( |description| {
@@ -410,21 +410,21 @@ impl Generator {
410410 let arg_name = param. name . to_kebab_case ( ) ;
411411 let arg_fn_name = sanitize ( & param. name , Case :: Snake ) ;
412412 let arg_fn = format_ident ! ( "{}" , arg_fn_name) ;
413- let OperationParameterType :: Type ( arg_type_id) = & param. typ else {
413+ let OperationParameterType :: Type ( arg_type_id) = & param. typ
414+ else {
414415 panic ! ( )
415416 } ;
416417 let arg_type = self . type_space . get_type ( arg_type_id) . unwrap ( ) ;
417418
418419 // TODO this really should be simpler.
419420 let arg_details = arg_type. details ( ) ;
420- let arg_type_name = match & arg_details{
421+ let arg_type_name = match & arg_details {
421422 typify:: TypeDetails :: Option ( opt_id) => {
422- let inner_type = self . type_space . get_type ( opt_id) . unwrap ( ) ;
423+ let inner_type =
424+ self . type_space . get_type ( opt_id) . unwrap ( ) ;
423425 inner_type. ident ( )
424426 }
425- _ => {
426- arg_type. ident ( )
427- }
427+ _ => arg_type. ident ( ) ,
428428 } ;
429429
430430 quote ! {
0 commit comments