diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-07-09 10:48:40 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-09 10:48:40 +0100 |
commit | 91005ecc27427f46529b9372f91e5072dfe5e179 (patch) | |
tree | ae8f546d6822b0727da89e82d224496f130685a9 /crates/ra_syntax | |
parent | f9d41bd18fa8e51580f223464d200342de7c6d4a (diff) | |
parent | 8e1ebbcc136d1bb8f120d0db2625b70a37b756f8 (diff) |
Merge #5279
5279: Simplify r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r-- | crates/ra_syntax/src/tests.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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::{ | |||
4 | path::{Component, Path, PathBuf}, | 4 | path::{Component, Path, PathBuf}, |
5 | }; | 5 | }; |
6 | 6 | ||
7 | use expect::expect_file; | ||
7 | use test_utils::project_dir; | 8 | use test_utils::project_dir; |
8 | 9 | ||
9 | use crate::{fuzz, tokenize, SourceFile, SyntaxError, TextRange, TextSize, Token}; | 10 | use crate::{fuzz, tokenize, SourceFile, SyntaxError, TextRange, TextSize, Token}; |
@@ -217,7 +218,7 @@ where | |||
217 | for (path, input_code) in collect_rust_files(test_data_dir, paths) { | 218 | for (path, input_code) in collect_rust_files(test_data_dir, paths) { |
218 | let actual = f(&input_code, &path); | 219 | let actual = f(&input_code, &path); |
219 | let path = path.with_extension(outfile_extension); | 220 | let path = path.with_extension(outfile_extension); |
220 | expect::ExpectFile::new(path).assert_eq(&actual) | 221 | expect_file![path].assert_eq(&actual) |
221 | } | 222 | } |
222 | } | 223 | } |
223 | 224 | ||