mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
rename ParsedFile -> File
This commit is contained in:
parent
cf278ed3bf
commit
220d285b4a
11 changed files with 39 additions and 39 deletions
|
@ -10,7 +10,7 @@ use std::{
|
|||
};
|
||||
use clap::{App, Arg, SubCommand};
|
||||
use tools::collect_tests;
|
||||
use libeditor::{ParsedFile, syntax_tree, file_structure};
|
||||
use libeditor::{File, syntax_tree, file_structure};
|
||||
|
||||
type Result<T> = ::std::result::Result<T, failure::Error>;
|
||||
|
||||
|
@ -68,7 +68,7 @@ fn main() -> Result<()> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
fn file() -> Result<ParsedFile> {
|
||||
fn file() -> Result<File> {
|
||||
let text = read_stdin()?;
|
||||
Ok(libeditor::parse(&text))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue