kill more reexports

This commit is contained in:
Aleksey Kladov 2018-08-25 11:48:59 +03:00
parent 70333c8edf
commit a44428fc79
2 changed files with 2 additions and 6 deletions

View file

@ -72,7 +72,7 @@ fn main() -> Result<()> {
fn file() -> Result<File> { fn file() -> Result<File> {
let text = read_stdin()?; let text = read_stdin()?;
Ok(libeditor::parse(&text)) Ok(File::parse(&text))
} }
fn read_stdin() -> Result<String> { 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()), None => bail!("No test found at line {} at {}", line, file.display()),
Some((_start_line, test)) => test, Some((_start_line, test)) => test,
}; };
let file = libeditor::parse(&test.text); let file = File::parse(&test.text);
let tree = syntax_tree(&file); let tree = syntax_tree(&file);
Ok((test.text, tree)) Ok((test.text, tree))
} }

View file

@ -51,10 +51,6 @@ pub enum RunnableKind {
Bin, Bin,
} }
pub fn parse(text: &str) -> File {
File::parse(text)
}
pub fn matching_brace(file: &File, offset: TextUnit) -> Option<TextUnit> { pub fn matching_brace(file: &File, offset: TextUnit) -> Option<TextUnit> {
const BRACES: &[SyntaxKind] = &[ const BRACES: &[SyntaxKind] = &[
L_CURLY, R_CURLY, L_CURLY, R_CURLY,