summaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
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} {}",