From aa644b55859c6b5c6695a5d4fb35d1b6efbbebcc Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Wed, 16 Jun 2021 21:45:02 +0200 Subject: Move test_utils into tests module --- crates/ide_completion/src/render/enum_variant.rs | 2 +- crates/ide_completion/src/render/function.rs | 2 +- crates/ide_completion/src/render/macro_.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ide_completion/src/render') diff --git a/crates/ide_completion/src/render/enum_variant.rs b/crates/ide_completion/src/render/enum_variant.rs index 28f056e77..91dc178f3 100644 --- a/crates/ide_completion/src/render/enum_variant.rs +++ b/crates/ide_completion/src/render/enum_variant.rs @@ -121,7 +121,7 @@ impl<'a> EnumRender<'a> { #[cfg(test)] mod tests { - use crate::test_utils::check_edit; + use crate::tests::check_edit; #[test] fn inserts_parens_for_tuple_enums() { diff --git a/crates/ide_completion/src/render/function.rs b/crates/ide_completion/src/render/function.rs index 1357b9f4a..19f2c86e9 100644 --- a/crates/ide_completion/src/render/function.rs +++ b/crates/ide_completion/src/render/function.rs @@ -191,7 +191,7 @@ impl<'a> FunctionRender<'a> { #[cfg(test)] mod tests { use crate::{ - test_utils::{check_edit, check_edit_with_config, TEST_CONFIG}, + tests::{check_edit, check_edit_with_config, TEST_CONFIG}, CompletionConfig, }; diff --git a/crates/ide_completion/src/render/macro_.rs b/crates/ide_completion/src/render/macro_.rs index 3a7238bb8..d5a1f45d3 100644 --- a/crates/ide_completion/src/render/macro_.rs +++ b/crates/ide_completion/src/render/macro_.rs @@ -133,7 +133,7 @@ fn guess_macro_braces(macro_name: &str, docs: &str) -> (&'static str, &'static s #[cfg(test)] mod tests { - use crate::test_utils::check_edit; + use crate::tests::check_edit; #[test] fn dont_insert_macro_call_parens_unncessary() { -- cgit v1.2.3