From 19e78020bd54d97c670a1bcfb187dffd2b79a3fa Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 17 Jul 2020 15:54:40 +0200 Subject: Remove insta for ra_hir_def --- .../ra_hir_def/src/nameres/tests/mod_resolution.rs | 32 ++++++++++------------ 1 file changed, 15 insertions(+), 17 deletions(-) (limited to 'crates/ra_hir_def/src/nameres/tests/mod_resolution.rs') diff --git a/crates/ra_hir_def/src/nameres/tests/mod_resolution.rs b/crates/ra_hir_def/src/nameres/tests/mod_resolution.rs index 3da16fbe3..ae58948c4 100644 --- a/crates/ra_hir_def/src/nameres/tests/mod_resolution.rs +++ b/crates/ra_hir_def/src/nameres/tests/mod_resolution.rs @@ -686,27 +686,25 @@ fn unresolved_module_diagnostics() { let crate_def_map = db.crate_def_map(krate); - insta::assert_debug_snapshot!( - crate_def_map.diagnostics, - @r###" - [ - UnresolvedModule { - module: Idx::(0), - declaration: InFile { - file_id: HirFileId( - FileId( + expect![[r#" + [ + UnresolvedModule { + module: Idx::(0), + declaration: InFile { + file_id: HirFileId( FileId( - 0, + FileId( + 0, + ), ), ), - ), - value: FileAstId::(1), + value: FileAstId::(1), + }, + candidate: "bar.rs", }, - candidate: "bar.rs", - }, - ] - "### - ); + ] + "#]] + .assert_debug_eq(&crate_def_map.diagnostics); } #[test] -- cgit v1.2.3