mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 21:28:51 +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]
|
[dependencies]
|
||||||
unicode-xid = "0.1.0"
|
unicode-xid = "0.1.0"
|
||||||
text_unit = "0.1.1"
|
text_unit = "0.1.2"
|
||||||
itertools = "0.7.5"
|
itertools = "0.7.5"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|
|
@ -7,6 +7,7 @@ extern crate tools;
|
||||||
use clap::{App, Arg, SubCommand};
|
use clap::{App, Arg, SubCommand};
|
||||||
use std::{fs, io::Read, path::Path};
|
use std::{fs, io::Read, path::Path};
|
||||||
use tools::collect_tests;
|
use tools::collect_tests;
|
||||||
|
use std::time::Instant;
|
||||||
|
|
||||||
type Result<T> = ::std::result::Result<T, failure::Error>;
|
type Result<T> = ::std::result::Result<T, failure::Error>;
|
||||||
|
|
||||||
|
@ -32,7 +33,9 @@ fn main() -> Result<()> {
|
||||||
.get_matches();
|
.get_matches();
|
||||||
match matches.subcommand() {
|
match matches.subcommand() {
|
||||||
("parse", _) => {
|
("parse", _) => {
|
||||||
|
let start = Instant::now();
|
||||||
let tree = parse()?;
|
let tree = parse()?;
|
||||||
|
eprintln!("elapsed {:?}", start.elapsed());
|
||||||
println!("{}", tree);
|
println!("{}", tree);
|
||||||
}
|
}
|
||||||
("render-test", Some(matches)) => {
|
("render-test", Some(matches)) => {
|
||||||
|
|
Loading…
Reference in a new issue