@@ -348,7 +348,11 @@ mod tests {
348348 // -- typed-value coercion -------------------------------------------
349349
350350 fn typed_str < ' a > ( t : TypedValue < ' a > ) -> Option < Cow < ' a , str > > {
351- if let TypedValue :: String ( s) = t { Some ( s) } else { None }
351+ if let TypedValue :: String ( s) = t {
352+ Some ( s)
353+ } else {
354+ None
355+ }
352356 }
353357
354358 #[ test]
@@ -377,14 +381,20 @@ mod tests {
377381 fn any_value_typed_int_from_json_string ( ) {
378382 // OTLP/JSON encodes int64 as a JSON string for JS safety.
379383 let av = v ( json ! ( { "intValue" : "42" } ) ) ;
380- assert ! ( matches!( any_value_typed( Some ( & av) ) , Some ( TypedValue :: Int ( 42 ) ) ) ) ;
384+ assert ! ( matches!(
385+ any_value_typed( Some ( & av) ) ,
386+ Some ( TypedValue :: Int ( 42 ) )
387+ ) ) ;
381388 }
382389
383390 #[ test]
384391 fn any_value_typed_int_from_native_integer ( ) {
385392 // Protobuf decoding may yield a native integer rather than a string.
386393 let av = v ( json ! ( { "intValue" : 42 } ) ) ;
387- assert ! ( matches!( any_value_typed( Some ( & av) ) , Some ( TypedValue :: Int ( 42 ) ) ) ) ;
394+ assert ! ( matches!(
395+ any_value_typed( Some ( & av) ) ,
396+ Some ( TypedValue :: Int ( 42 ) )
397+ ) ) ;
388398 }
389399
390400 #[ test]
@@ -442,10 +452,7 @@ mod tests {
442452 Some ( TypedValue :: Bool ( true ) ) ,
443453 ) ) ;
444454 assert ! ( matches!(
445- find_attribute_typed_path(
446- Some ( & attrs) ,
447- & [ "http" . to_string( ) , "status" . to_string( ) ] ,
448- ) ,
455+ find_attribute_typed_path( Some ( & attrs) , & [ "http" . to_string( ) , "status" . to_string( ) ] , ) ,
449456 Some ( TypedValue :: Int ( 500 ) ) ,
450457 ) ) ;
451458 // Missing keys still resolve to None.
0 commit comments