From 406735e6f2014b40421bf285e36fc8f87bb7b9ee Mon Sep 17 00:00:00 2001 From: Tom Genco Date: Tue, 13 Jan 2015 15:04:21 -0700 Subject: [PATCH] uname: change trim_left() to trim() Otherwise all options have a space at the end, causing a warning in grml zsh config, and who knows what else. --- src/uname/uname.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uname/uname.rs b/src/uname/uname.rs index 928bf1342..37a90350f 100644 --- a/src/uname/uname.rs +++ b/src/uname/uname.rs @@ -105,7 +105,7 @@ pub fn uumain(args: Vec) -> isize { output.push_str(uname.machine.as_slice()); output.push_str(" "); } - println!("{}", output.as_slice().trim_left()); + println!("{}", output.as_slice().trim()); 0 }