From de7662c852353febce09196199202ee7f6e8e6c3 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 17 Mar 2020 10:46:46 +0100 Subject: Check that no file contains trailing ws rustfmt allows trailing spaces in string literals unfortunately. --- crates/ra_ide/src/goto_definition.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/ra_ide') diff --git a/crates/ra_ide/src/goto_definition.rs b/crates/ra_ide/src/goto_definition.rs index a7be92ce3..502fcb0cf 100644 --- a/crates/ra_ide/src/goto_definition.rs +++ b/crates/ra_ide/src/goto_definition.rs @@ -100,8 +100,8 @@ mod tests { use crate::mock_analysis::analysis_and_position; - fn check_goto(fixture: &str, expected: &str, expected_range: &str) { - let (analysis, pos) = analysis_and_position(fixture); + fn check_goto(ra_fixture: &str, expected: &str, expected_range: &str) { + let (analysis, pos) = analysis_and_position(ra_fixture); let mut navs = analysis.goto_definition(pos).unwrap().unwrap().info; assert_eq!(navs.len(), 1); @@ -790,8 +790,8 @@ mod tests { #[test] fn goto_def_in_local_macro() { check_goto( - " - //- /lib.rs + r" + //- /lib.rs fn bar() { macro_rules! foo { () => { () } } <|>foo!(); -- cgit v1.2.3