diff options
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | cli/src/main.rs | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml index e0c1ce0a4..0a9d1815e 100644 --- a/Cargo.toml +++ b/Cargo.toml | |||
@@ -9,7 +9,7 @@ members = [ "tools", "cli" ] | |||
9 | 9 | ||
10 | [dependencies] | 10 | [dependencies] |
11 | unicode-xid = "0.1.0" | 11 | unicode-xid = "0.1.0" |
12 | text_unit = "0.1.1" | 12 | text_unit = "0.1.2" |
13 | itertools = "0.7.5" | 13 | itertools = "0.7.5" |
14 | 14 | ||
15 | [dev-dependencies] | 15 | [dev-dependencies] |
diff --git a/cli/src/main.rs b/cli/src/main.rs index 546cbb66b..ad7119533 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs | |||
@@ -7,6 +7,7 @@ extern crate tools; | |||
7 | use clap::{App, Arg, SubCommand}; | 7 | use clap::{App, Arg, SubCommand}; |
8 | use std::{fs, io::Read, path::Path}; | 8 | use std::{fs, io::Read, path::Path}; |
9 | use tools::collect_tests; | 9 | use tools::collect_tests; |
10 | use std::time::Instant; | ||
10 | 11 | ||
11 | type Result<T> = ::std::result::Result<T, failure::Error>; | 12 | type Result<T> = ::std::result::Result<T, failure::Error>; |
12 | 13 | ||
@@ -32,7 +33,9 @@ fn main() -> Result<()> { | |||
32 | .get_matches(); | 33 | .get_matches(); |
33 | match matches.subcommand() { | 34 | match matches.subcommand() { |
34 | ("parse", _) => { | 35 | ("parse", _) => { |
36 | let start = Instant::now(); | ||
35 | let tree = parse()?; | 37 | let tree = parse()?; |
38 | eprintln!("elapsed {:?}", start.elapsed()); | ||
36 | println!("{}", tree); | 39 | println!("{}", tree); |
37 | } | 40 | } |
38 | ("render-test", Some(matches)) => { | 41 | ("render-test", Some(matches)) => { |