mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 13:18:47 +00:00
update text-unit
This commit is contained in:
parent
f4c106f86a
commit
5d8cef4c0e
2 changed files with 4 additions and 1 deletions
|
@ -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]
|
||||
|
|
|
@ -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)) => {
|
||||
|
|
Loading…
Reference in a new issue