@@ -429,9 +429,7 @@ const CLUSTER_DEPLOY_LOG_LINES: usize = 15;
429429
430430/// Return the current terminal width, falling back to 80 columns.
431431fn term_width ( ) -> usize {
432- crossterm:: terminal:: size ( )
433- . map ( |( w, _) | w as usize )
434- . unwrap_or ( 80 )
432+ crossterm:: terminal:: size ( ) . map_or ( 80 , |( w, _) | w as usize )
435433}
436434
437435/// Build a horizontal rule of `─` characters with an optional centered label.
@@ -446,7 +444,7 @@ fn horizontal_rule(label: Option<&str>, width: usize) -> String {
446444 let remaining = width - text_len;
447445 let left = remaining / 2 ;
448446 let right = remaining - left;
449- format ! ( "{}{}{}" , "─" . repeat( left) , text_with_pad, "─" . repeat( right) , )
447+ format ! ( "{}{}{}" , "─" . repeat( left) , text_with_pad, "─" . repeat( right) )
450448 }
451449 None => "─" . repeat ( width) ,
452450 }
@@ -1182,7 +1180,7 @@ pub async fn gateway_login(name: &str) -> Result<()> {
11821180 let token = crate :: auth:: browser_auth_flow ( & metadata. gateway_endpoint ) . await ?;
11831181 openshell_bootstrap:: edge_token:: store_edge_token ( name, & token) ?;
11841182
1185- eprintln ! ( "{} Authenticated to gateway '{name}'" , "✓" . green( ) . bold( ) , ) ;
1183+ eprintln ! ( "{} Authenticated to gateway '{name}'" , "✓" . green( ) . bold( ) ) ;
11861184
11871185 Ok ( ( ) )
11881186}
@@ -2446,7 +2444,7 @@ pub async fn sandbox_create(
24462444 )
24472445 . await ?;
24482446 }
2449- eprintln ! ( " {} Files uploaded" , "\u{2713} " . green( ) . bold( ) , ) ;
2447+ eprintln ! ( " {} Files uploaded" , "\u{2713} " . green( ) . bold( ) ) ;
24502448 }
24512449
24522450 // If --forward was requested, start the background port forward
@@ -4594,7 +4592,7 @@ pub async fn gateway_setting_delete(
45944592 response. settings_revision
45954593 ) ;
45964594 } else {
4597- println ! ( "{} Global setting {} not found" , "!" . yellow( ) , key, ) ;
4595+ println ! ( "{} Global setting {} not found" , "!" . yellow( ) , key) ;
45984596 }
45994597 Ok ( ( ) )
46004598}
0 commit comments