From 61f3a438d3a729a6be941bca1ff4c6a97a33f221 Mon Sep 17 00:00:00 2001 From: "Jeremy A. Kolb" Date: Mon, 15 Oct 2018 17:44:23 -0400 Subject: Cargo Format Run `cargo fmt` and ignore generated files --- crates/ra_syntax/tests/test.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'crates/ra_syntax/tests') diff --git a/crates/ra_syntax/tests/test.rs b/crates/ra_syntax/tests/test.rs index 27380efef..9d1ded093 100644 --- a/crates/ra_syntax/tests/test.rs +++ b/crates/ra_syntax/tests/test.rs @@ -4,14 +4,14 @@ extern crate test_utils; extern crate walkdir; use std::{ + fmt::Write, fs, path::{Path, PathBuf}, - fmt::Write, }; use ra_syntax::{ + utils::{check_fuzz_invariants, dump_tree}, File, - utils::{dump_tree, check_fuzz_invariants}, }; #[test] @@ -37,7 +37,6 @@ fn parser_fuzz_tests() { } } - /// Read file and normalize newlines. /// /// `rustc` seems to always normalize `\r\n` newlines to `\n`: @@ -54,8 +53,8 @@ fn read_text(path: &Path) -> String { } pub fn dir_tests(paths: &[&str], f: F) - where - F: Fn(&str) -> String, +where + F: Fn(&str) -> String, { for (path, input_code) in collect_tests(paths) { let parse_tree = f(&input_code); -- cgit v1.2.3