aboutsummaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-09 23:16:24 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-09 23:16:24 +0300
commit9f210e973834700d14c6c0283ed750ed5b038e8b (patch)
treecd8c75755c59fdc47bf71ca6dc34e49ab0258ae6 /src/cli.rs
parent3a9888cd564dc45d23a7bdd0dba29a6ff1ef48a1 (diff)
chore: enable clippy linting
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs7
1 files changed, 2 insertions, 5 deletions
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<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} {}",