Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 17b9962

Browse files
committed
Apply formatting to run_tooltip_tests
1 parent 3898324 commit 17b9962

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/actions/hover.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2067,7 +2067,11 @@ pub mod test {
20672067
}
20682068

20692069
// Common logic used in `test_tooltip_*` tests below
2070-
fn run_tooltip_tests(tests: &[Test], proj_dir: PathBuf, racer_completion: Racer) -> Result<(), Box<dyn std::error::Error>> {
2070+
fn run_tooltip_tests(
2071+
tests: &[Test],
2072+
proj_dir: PathBuf,
2073+
racer_completion: Racer,
2074+
) -> Result<(), Box<dyn std::error::Error>> {
20712075
let out = LineOutput::default();
20722076

20732077
let save_dir_guard = tempfile::tempdir().unwrap();
@@ -2084,7 +2088,10 @@ pub mod test {
20842088
Ok(())
20852089
} else {
20862090
eprintln!("{}\n\n", out.reset().join("\n"));
2087-
eprintln!("Failures (\x1b[91mexpected\x1b[92mactual\x1b[0m): {:#?}\n\n", failures);
2091+
eprintln!(
2092+
"Failures (\x1b[91mexpected\x1b[92mactual\x1b[0m): {:#?}\n\n",
2093+
failures
2094+
);
20882095
Err(format!("{} of {} tooltip tests failed", failures.len(), tests.len()).into())
20892096
}
20902097
}

0 commit comments

Comments
 (0)