diff options
author | Aleksey Kladov <[email protected]> | 2020-03-17 09:46:46 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-03-17 10:42:54 +0000 |
commit | de7662c852353febce09196199202ee7f6e8e6c3 (patch) | |
tree | ff98e8e779dfe2c7e2a3eebf84dca6020f5db1b2 /crates/ra_ide | |
parent | 089c5547709bb8e7e60388c4f9a5e25c394c1f39 (diff) |
Check that no file contains trailing ws
rustfmt allows trailing spaces in string literals unfortunately.
Diffstat (limited to 'crates/ra_ide')
-rw-r--r-- | crates/ra_ide/src/goto_definition.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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 { | |||
100 | 100 | ||
101 | use crate::mock_analysis::analysis_and_position; | 101 | use crate::mock_analysis::analysis_and_position; |
102 | 102 | ||
103 | fn check_goto(fixture: &str, expected: &str, expected_range: &str) { | 103 | fn check_goto(ra_fixture: &str, expected: &str, expected_range: &str) { |
104 | let (analysis, pos) = analysis_and_position(fixture); | 104 | let (analysis, pos) = analysis_and_position(ra_fixture); |
105 | 105 | ||
106 | let mut navs = analysis.goto_definition(pos).unwrap().unwrap().info; | 106 | let mut navs = analysis.goto_definition(pos).unwrap().unwrap().info; |
107 | assert_eq!(navs.len(), 1); | 107 | assert_eq!(navs.len(), 1); |
@@ -790,8 +790,8 @@ mod tests { | |||
790 | #[test] | 790 | #[test] |
791 | fn goto_def_in_local_macro() { | 791 | fn goto_def_in_local_macro() { |
792 | check_goto( | 792 | check_goto( |
793 | " | 793 | r" |
794 | //- /lib.rs | 794 | //- /lib.rs |
795 | fn bar() { | 795 | fn bar() { |
796 | macro_rules! foo { () => { () } } | 796 | macro_rules! foo { () => { () } } |
797 | <|>foo!(); | 797 | <|>foo!(); |