about summary refs log tree commit diff
path: root/src/libgetopts
diff options
context:
space:
mode:
authorRicho Healey <richo@psych0tik.net>2014-05-24 21:59:56 -0700
committerRicho Healey <richo@psych0tik.net>2014-05-26 19:06:13 -0700
commitc7fe4ffe3d8315dfe98bee6d040b5a0381daab91 (patch)
treed005bac35d0a12ce8a17b10f1df692fec845061c /src/libgetopts
parent746d086f9322d24fa7b389dd911e204ca35012ae (diff)
downloadrust-c7fe4ffe3d8315dfe98bee6d040b5a0381daab91.tar.gz
rust-c7fe4ffe3d8315dfe98bee6d040b5a0381daab91.zip
std: Remove String::from_owned_str as it's redundant
[breaking-change]
Diffstat (limited to 'src/libgetopts')
-rw-r--r--src/libgetopts/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libgetopts/lib.rs b/src/libgetopts/lib.rs
index 2039dcc7d14..85e1a7decc2 100644
--- a/src/libgetopts/lib.rs
+++ b/src/libgetopts/lib.rs
@@ -671,7 +671,7 @@ pub fn usage(brief: &str, opts: &[OptGroup]) -> String {
                      hasarg: hasarg,
                      ..} = (*optref).clone();
 
-        let mut row = String::from_owned_str(" ".repeat(4));
+        let mut row = " ".repeat(4);
 
         // short option
         match short_name.len() {