diff options
author | Andrew Gallant <jamslam@gmail.com> | 2015-01-09 22:57:38 -0500 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2015-01-09 22:57:38 -0500 |
commit | 45dfe234f41fbb3dc9b2789e7405a841f1cde6db (patch) | |
tree | 8377c2da2507e30e5611760e27b454753422d1d1 /src/main.rs | |
parent | 60505445a7e553766a7f4e2f5163d012d24a020d (diff) |
rustup
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index 39c8638..2a2aa9c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,8 +2,7 @@ These are some docs. */ -#![feature(slicing_syntax)] - +#![allow(unstable)] #![allow(dead_code, unused_variables)] extern crate csv; @@ -151,8 +150,8 @@ enum Command { impl Command { fn run(self) -> CliResult<()> { let argv = os::args(); - let argv: Vec<_> = argv.iter().map(|s| s[]).collect(); - let argv = argv[]; + let argv: Vec<_> = argv.iter().map(|s| &**s).collect(); + let argv = &*argv; match self { Command::Cat => cmd::cat::run(argv), Command::Count => cmd::count::run(argv), |