diff options
Diffstat (limited to 'crates/ra_ide_api/src/diagnostics.rs')
-rw-r--r-- | crates/ra_ide_api/src/diagnostics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/diagnostics.rs b/crates/ra_ide_api/src/diagnostics.rs index 1a4882824..c448aa8c5 100644 --- a/crates/ra_ide_api/src/diagnostics.rs +++ b/crates/ra_ide_api/src/diagnostics.rs | |||
@@ -183,7 +183,7 @@ fn check_struct_shorthand_initialization( | |||
183 | 183 | ||
184 | #[cfg(test)] | 184 | #[cfg(test)] |
185 | mod tests { | 185 | mod tests { |
186 | use insta::assert_debug_snapshot_matches; | 186 | use insta::assert_debug_snapshot; |
187 | use join_to_string::join; | 187 | use join_to_string::join; |
188 | use ra_syntax::SourceFile; | 188 | use ra_syntax::SourceFile; |
189 | use test_utils::assert_eq_text; | 189 | use test_utils::assert_eq_text; |
@@ -519,7 +519,7 @@ mod tests { | |||
519 | fn test_unresolved_module_diagnostic() { | 519 | fn test_unresolved_module_diagnostic() { |
520 | let (analysis, file_id) = single_file("mod foo;"); | 520 | let (analysis, file_id) = single_file("mod foo;"); |
521 | let diagnostics = analysis.diagnostics(file_id).unwrap(); | 521 | let diagnostics = analysis.diagnostics(file_id).unwrap(); |
522 | assert_debug_snapshot_matches!(diagnostics, @r###" | 522 | assert_debug_snapshot!(diagnostics, @r###" |
523 | ⋮[ | 523 | ⋮[ |
524 | ⋮ Diagnostic { | 524 | ⋮ Diagnostic { |
525 | ⋮ message: "unresolved module", | 525 | ⋮ message: "unresolved module", |