aboutsummaryrefslogtreecommitdiff
path: root/crates/libeditor/tests/test.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-11 06:56:13 +0100
committerAleksey Kladov <[email protected]>2018-08-11 06:56:13 +0100
commit35b59bb43877c496fbaf98520b3b52ff9a6518b1 (patch)
tree9d8a1d0ad251101c9107968bfb0ea17f34ef869c /crates/libeditor/tests/test.rs
parentf99551f46b1583ed43751e4d26fe76a0b913eb5f (diff)
simplify
Diffstat (limited to 'crates/libeditor/tests/test.rs')
-rw-r--r--crates/libeditor/tests/test.rs6
1 files changed, 3 insertions, 3 deletions
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;
3 3
4use std::fmt; 4use std::fmt;
5use itertools::Itertools; 5use itertools::Itertools;
6use libeditor::{ast, highlight, runnables, extend_selection, TextRange}; 6use libeditor::{File, highlight, runnables, extend_selection, TextRange};
7 7
8#[test] 8#[test]
9fn test_extend_selection() { 9fn test_extend_selection() {
@@ -58,8 +58,8 @@ fn test_foo() {}
58 ) 58 )
59} 59}
60 60
61fn file(text: &str) -> ast::File { 61fn file(text: &str) -> File {
62 ast::File::parse(text) 62 File::parse(text)
63} 63}
64 64
65fn dbg_eq(actual: &impl fmt::Debug, expected: &str) { 65fn dbg_eq(actual: &impl fmt::Debug, expected: &str) {