From ade52d2423a4f9f8e0190b4e438823cbbc910c75 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 19 Mar 2018 14:08:05 +0100 Subject: fix(main): Fix formatting of queue name in ls-output --- src/main.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index e67798e9f390..55ff0064295d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,8 +25,11 @@ fn run_ls() { content }; - let queue_name = path.components().last().unwrap().as_os_str(); - println!("{:?}: {}", queue_name, status) + let queue_name = path.components().last().unwrap() + .as_os_str() + .to_string_lossy(); + + println!("/{}: {}", queue_name, status) }; } @@ -195,7 +198,7 @@ fn main() { let matches = App::new("mq") .setting(AppSettings::SubcommandRequiredElseHelp) - .version("0.0.1") + .version("1.0.0") .about("Administrate and inspect POSIX message queues") .subcommand(ls) .subcommand(inspect) -- cgit 1.4.1