diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-09 23:16:24 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-09 23:16:24 +0300 |
| commit | 9f210e973834700d14c6c0283ed750ed5b038e8b (patch) | |
| tree | cd8c75755c59fdc47bf71ca6dc34e49ab0258ae6 /src/cli.rs | |
| parent | 3a9888cd564dc45d23a7bdd0dba29a6ff1ef48a1 (diff) | |
chore: enable clippy linting
Diffstat (limited to 'src/cli.rs')
| -rw-r--r-- | src/cli.rs | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -202,7 +202,7 @@ fn compatibility_label(protocol: Option<u32>) -> &'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} {}", |
