From 8e1ebbcc136d1bb8f120d0db2625b70a37b756f8 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 9 Jul 2020 11:47:27 +0200 Subject: Simplify --- crates/ra_syntax/src/tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crates/ra_syntax') diff --git a/crates/ra_syntax/src/tests.rs b/crates/ra_syntax/src/tests.rs index a5b6e972e..aa78735da 100644 --- a/crates/ra_syntax/src/tests.rs +++ b/crates/ra_syntax/src/tests.rs @@ -4,6 +4,7 @@ use std::{ path::{Component, Path, PathBuf}, }; +use expect::expect_file; use test_utils::project_dir; use crate::{fuzz, tokenize, SourceFile, SyntaxError, TextRange, TextSize, Token}; @@ -217,7 +218,7 @@ where for (path, input_code) in collect_rust_files(test_data_dir, paths) { let actual = f(&input_code, &path); let path = path.with_extension(outfile_extension); - expect::ExpectFile::new(path).assert_eq(&actual) + expect_file![path].assert_eq(&actual) } } -- cgit v1.2.3