mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
kill more reexports
This commit is contained in:
parent
70333c8edf
commit
a44428fc79
2 changed files with 2 additions and 6 deletions
|
@ -72,7 +72,7 @@ fn main() -> Result<()> {
|
|||
|
||||
fn file() -> Result<File> {
|
||||
let text = read_stdin()?;
|
||||
Ok(libeditor::parse(&text))
|
||||
Ok(File::parse(&text))
|
||||
}
|
||||
|
||||
fn read_stdin() -> Result<String> {
|
||||
|
@ -91,7 +91,7 @@ fn render_test(file: &Path, line: usize) -> Result<(String, String)> {
|
|||
None => bail!("No test found at line {} at {}", line, file.display()),
|
||||
Some((_start_line, test)) => test,
|
||||
};
|
||||
let file = libeditor::parse(&test.text);
|
||||
let file = File::parse(&test.text);
|
||||
let tree = syntax_tree(&file);
|
||||
Ok((test.text, tree))
|
||||
}
|
||||
|
|
|
@ -51,10 +51,6 @@ pub enum RunnableKind {
|
|||
Bin,
|
||||
}
|
||||
|
||||
pub fn parse(text: &str) -> File {
|
||||
File::parse(text)
|
||||
}
|
||||
|
||||
pub fn matching_brace(file: &File, offset: TextUnit) -> Option<TextUnit> {
|
||||
const BRACES: &[SyntaxKind] = &[
|
||||
L_CURLY, R_CURLY,
|
||||
|
|
Loading…
Reference in a new issue