From a44428fc796cb5afb5b85cd246974e590eef2040 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 25 Aug 2018 11:48:59 +0300 Subject: kill more reexports --- crates/cli/src/main.rs | 4 ++-- crates/libeditor/src/lib.rs | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'crates') diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index bcb0c9b98..68a531f93 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -72,7 +72,7 @@ fn main() -> Result<()> { fn file() -> Result { let text = read_stdin()?; - Ok(libeditor::parse(&text)) + Ok(File::parse(&text)) } fn read_stdin() -> Result { @@ -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)) } diff --git a/crates/libeditor/src/lib.rs b/crates/libeditor/src/lib.rs index da337cca0..a604d1951 100644 --- a/crates/libeditor/src/lib.rs +++ b/crates/libeditor/src/lib.rs @@ -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 { const BRACES: &[SyntaxKind] = &[ L_CURLY, R_CURLY, -- cgit v1.2.3