From 9f210e973834700d14c6c0283ed750ed5b038e8b Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sat, 9 May 2026 23:16:24 +0300 Subject: chore: enable clippy linting --- src/cli.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index 1d3c29e2..a5ba8b1a 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -202,7 +202,7 @@ fn compatibility_label(protocol: Option) -> &'static str { fn restart_needed_label(server: &ServerRuntimeStatus) -> &'static str { match server { ServerRuntimeStatus::Running { version, .. } => match version.as_deref() { - Some(version) if version == env!("CARGO_PKG_VERSION") => "no", + Some(env!("CARGO_PKG_VERSION")) => "no", Some(_) => "yes", None => "unknown", }, @@ -1391,10 +1391,7 @@ fn parse_session_name_and_json(args: &[String], usage: &str) -> Result<(String, } fn print_session_table(sessions: &[crate::session::SessionInfo]) { - println!( - "{:<20} {:<8} {:<48} {}", - "name", "status", "directory", "socket" - ); + println!("{:<20} {:<8} {:<48} socket", "name", "status", "directory"); for session in sessions { println!( "{:<20} {:<8} {:<48} {}", -- cgit v1.2.3