From 35b59bb43877c496fbaf98520b3b52ff9a6518b1 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 11 Aug 2018 08:56:13 +0300 Subject: simplify --- crates/libeditor/tests/test.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/libeditor/tests') diff --git a/crates/libeditor/tests/test.rs b/crates/libeditor/tests/test.rs index 2a84c5080..d617f4b99 100644 --- a/crates/libeditor/tests/test.rs +++ b/crates/libeditor/tests/test.rs @@ -3,7 +3,7 @@ extern crate itertools; use std::fmt; use itertools::Itertools; -use libeditor::{ast, highlight, runnables, extend_selection, TextRange}; +use libeditor::{File, highlight, runnables, extend_selection, TextRange}; #[test] fn test_extend_selection() { @@ -58,8 +58,8 @@ fn test_foo() {} ) } -fn file(text: &str) -> ast::File { - ast::File::parse(text) +fn file(text: &str) -> File { + File::parse(text) } fn dbg_eq(actual: &impl fmt::Debug, expected: &str) { -- cgit v1.2.3