From fc9eed4836dfc88fe2893c81b015ab440cea2ba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Mon, 8 Mar 2021 22:19:44 +0200 Subject: Use upstream cov-mark --- crates/ide_completion/src/render/enum_variant.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'crates/ide_completion/src/render/enum_variant.rs') diff --git a/crates/ide_completion/src/render/enum_variant.rs b/crates/ide_completion/src/render/enum_variant.rs index 9214193b4..ed055c1fb 100644 --- a/crates/ide_completion/src/render/enum_variant.rs +++ b/crates/ide_completion/src/render/enum_variant.rs @@ -3,7 +3,6 @@ use hir::{HasAttrs, HirDisplay, ModPath, StructKind}; use ide_db::SymbolKind; use itertools::Itertools; -use test_utils::mark; use crate::{ item::{CompletionItem, CompletionKind, ImportEdit}, @@ -68,7 +67,7 @@ impl<'a> EnumRender<'a> { .detail(self.detail()); if self.variant_kind == StructKind::Tuple { - mark::hit!(inserts_parens_for_tuple_enums); + cov_mark::hit!(inserts_parens_for_tuple_enums); let params = Params::Anonymous(self.variant.fields(self.ctx.db()).len()); builder = builder.add_call_parens(self.ctx.completion, self.short_qualified_name, params); @@ -103,13 +102,11 @@ impl<'a> EnumRender<'a> { #[cfg(test)] mod tests { - use test_utils::mark; - use crate::test_utils::check_edit; #[test] fn inserts_parens_for_tuple_enums() { - mark::check!(inserts_parens_for_tuple_enums); + cov_mark::check!(inserts_parens_for_tuple_enums); check_edit( "Some", r#" -- cgit v1.2.3