diff --git a/src/emitter.rs b/src/emitter.rs index 9f5ff43..3caa9b4 100644 --- a/src/emitter.rs +++ b/src/emitter.rs @@ -21,7 +21,6 @@ impl <'a> LexicalContext<'a> { is_tail: false, } } - #[allow(dead_code)] fn new(parent: &'a LexicalContext<'a>) -> Self { LexicalContext { parent: Some(parent), diff --git a/src/main.rs b/src/main.rs index 0e79a81..0ed6a00 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,15 +16,15 @@ struct Cli { file: PathBuf, #[clap(short, long, help="Emit a parse tree")] parse: bool, - #[clap(short, long, help="Cross-compile to ECMAScript")] + #[clap(short, long, help="Cross compile to ECMAScript")] ecmascript: bool, - #[clap(long, help="Only run the pre-processor")] + #[clap(long, help="Run the preprocessor")] preprocess: bool, } fn main() { let cli = Cli::parse(); - let mut file = File::open(&cli.file).expect("Could not read file"); + let mut file = File::open(&cli.file).expect("Couldn't read file"); let mut prgm = String::new(); file.read_to_string(&mut prgm).unwrap(); if cli.preprocess {