update text-unit

This commit is contained in:
Aleksey Kladov 2018-07-31 21:43:28 +03:00
parent f4c106f86a
commit 5d8cef4c0e
2 changed files with 4 additions and 1 deletions

View file

@ -9,7 +9,7 @@ members = [ "tools", "cli" ]
[dependencies]
unicode-xid = "0.1.0"
text_unit = "0.1.1"
text_unit = "0.1.2"
itertools = "0.7.5"
[dev-dependencies]

View file

@ -7,6 +7,7 @@ extern crate tools;
use clap::{App, Arg, SubCommand};
use std::{fs, io::Read, path::Path};
use tools::collect_tests;
use std::time::Instant;
type Result<T> = ::std::result::Result<T, failure::Error>;
@ -32,7 +33,9 @@ fn main() -> Result<()> {
.get_matches();
match matches.subcommand() {
("parse", _) => {
let start = Instant::now();
let tree = parse()?;
eprintln!("elapsed {:?}", start.elapsed());
println!("{}", tree);
}
("render-test", Some(matches)) => {