From 0f6c048ce1a621ccd3e2080ec5aafbd053c516f4 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 29 Aug 2019 16:49:10 +0300 Subject: :arrow_up: insta --- crates/ra_ide_api/src/display/structure.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_ide_api/src/display/structure.rs') diff --git a/crates/ra_ide_api/src/display/structure.rs b/crates/ra_ide_api/src/display/structure.rs index a2025ed59..be042ed17 100644 --- a/crates/ra_ide_api/src/display/structure.rs +++ b/crates/ra_ide_api/src/display/structure.rs @@ -161,7 +161,7 @@ fn structure_node(node: &SyntaxNode) -> Option { #[cfg(test)] mod tests { use super::*; - use insta::assert_debug_snapshot_matches; + use insta::assert_debug_snapshot; #[test] fn test_file_structure() { @@ -204,7 +204,7 @@ fn very_obsolete() {} .ok() .unwrap(); let structure = file_structure(&file); - assert_debug_snapshot_matches!(structure, + assert_debug_snapshot!(structure, @r#"[ StructureNode { parent: None, -- cgit v1.2.3