File tree Expand file tree Collapse file tree
frontends/rioterm/src/renderer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1062,7 +1062,10 @@ mod tests {
10621062
10631063 #[ test]
10641064 fn title_fits_is_returned_unchanged ( ) {
1065- assert_eq ! ( fit_title_with_widths( "hello" , 10.0 , fixed_unit_width) , "hello" ) ;
1065+ assert_eq ! (
1066+ fit_title_with_widths( "hello" , 10.0 , fixed_unit_width) ,
1067+ "hello"
1068+ ) ;
10661069 assert_eq ! ( fit_title_with_widths( "hi" , 2.0 , fixed_unit_width) , "hi" ) ;
10671070 }
10681071
@@ -1072,7 +1075,10 @@ mod tests {
10721075 // full title fits, the returned Cow must stay Borrowed so the
10731076 // render loop doesn't allocate a new String every frame.
10741077 let out = fit_title_with_widths ( "ok" , 10.0 , fixed_unit_width) ;
1075- assert ! ( matches!( out, Cow :: Borrowed ( _) ) , "expected borrowed, got {out:?}" ) ;
1078+ assert ! (
1079+ matches!( out, Cow :: Borrowed ( _) ) ,
1080+ "expected borrowed, got {out:?}"
1081+ ) ;
10761082 }
10771083
10781084 #[ test]
You can’t perform that action at this time.
0 commit comments