diff options
author | Andrew Gallant <jamslam@gmail.com> | 2015-01-04 15:03:36 -0500 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2015-01-04 15:03:36 -0500 |
commit | 1ba8bfffd4bcac2f2bd1a3ffef66072d69b1eec2 (patch) | |
tree | a7ca5549bbde2e4b1310eeba96046a870c106d99 /src/main.rs | |
parent | 6aa1b2fb86f5ca85cf5747daaefb741f31064386 (diff) |
rustup
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs index 53f31bc..97d7a03 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,11 @@ -#![feature(macro_rules, slicing_syntax)] - /*! These are some docs. */ +#![feature(macro_rules, slicing_syntax)] +#![feature(old_orphan_check)] // see rustc commit c61a00 + +#![allow(dead_code, unused_variables)] extern crate csv; extern crate docopt; @@ -68,7 +70,7 @@ Options: Commands:", command_list!()); -#[deriving(RustcDecodable)] +#[derive(RustcDecodable)] struct Args { arg_command: Option<Command>, flag_list: bool, @@ -126,7 +128,7 @@ Please choose one of the following commands:", } } -#[deriving(RustcDecodable, Show)] +#[derive(RustcDecodable, Show)] enum Command { Cat, Count, @@ -176,7 +178,7 @@ impl Command { type CliResult<T> = Result<T, CliError>; -#[deriving(Show)] +#[derive(Show)] enum CliError { Flag(docopt::Error), Csv(csv::Error), |