aboutsummaryrefslogtreecommitdiff
path: root/cli/src/main.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-07-31 19:43:28 +0100
committerAleksey Kladov <[email protected]>2018-07-31 19:43:28 +0100
commit5d8cef4c0eec3718d92560337f9a1d4fcf04d01f (patch)
tree1d5cb9d62b5c63696bbbbf4eb2895ba7d93b0640 /cli/src/main.rs
parentf4c106f86a4fbb91f36aac59a6a98fff9d3c5c40 (diff)
update text-unit
Diffstat (limited to 'cli/src/main.rs')
-rw-r--r--cli/src/main.rs3
1 files changed, 3 insertions, 0 deletions
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;
7use clap::{App, Arg, SubCommand}; 7use clap::{App, Arg, SubCommand};
8use std::{fs, io::Read, path::Path}; 8use std::{fs, io::Read, path::Path};
9use tools::collect_tests; 9use tools::collect_tests;
10use std::time::Instant;
10 11
11type Result<T> = ::std::result::Result<T, failure::Error>; 12type 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)) => {