diff options
author | Andrew Gallant <jamslam@gmail.com> | 2015-02-12 18:42:02 -0500 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2015-02-12 18:42:02 -0500 |
commit | 878e5006d69cafc1afa6d6d2a24af211d5f96fa1 (patch) | |
tree | 7c851eb5e764c0e15e9d0a17a01a0aec53fcd632 /src/main.rs | |
parent | 436e553d2fb7e92185aeee023262a5cb7b454281 (diff) |
rustup
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index d83d524..415d620 100644 --- a/src/main.rs +++ b/src/main.rs @@ -152,8 +152,7 @@ enum Command { impl Command { fn run(self) -> CliResult<()> { - let argv: Vec<_> = env::args() - .map(|v| v.into_string().unwrap()).collect(); + let argv: Vec<_> = env::args().map(|v| v.to_string()).collect(); let argv: Vec<_> = argv.iter().map(|s| &**s).collect(); let argv = &*argv; match self { |