From d3c90ded2b9a4f75e101fa3abc60cd3aebc439c9 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 17 Aug 2018 22:00:13 +0300 Subject: Borrowed AST --- crates/cli/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/cli') diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index fc28691fc..e8e2ce7ee 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -10,7 +10,7 @@ use std::{ }; use clap::{App, Arg, SubCommand}; use tools::collect_tests; -use libeditor::{File, syntax_tree, file_structure}; +use libeditor::{ParsedFile, syntax_tree, file_structure}; type Result = ::std::result::Result; @@ -68,7 +68,7 @@ fn main() -> Result<()> { Ok(()) } -fn file() -> Result { +fn file() -> Result { let text = read_stdin()?; Ok(libeditor::parse(&text)) } -- cgit v1.2.3