From dec207f56a7b16075f68dcb89138d93a7eecdf43 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 13 Jun 2021 19:27:14 +0300 Subject: minor: simplify --- crates/ide/src/diagnostics/fixes/change_case.rs | 4 ++-- crates/ide/src/diagnostics/fixes/wrap_tail_expr.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'crates/ide/src/diagnostics/fixes') diff --git a/crates/ide/src/diagnostics/fixes/change_case.rs b/crates/ide/src/diagnostics/fixes/change_case.rs index 42be3375f..db1a37cd6 100644 --- a/crates/ide/src/diagnostics/fixes/change_case.rs +++ b/crates/ide/src/diagnostics/fixes/change_case.rs @@ -35,7 +35,7 @@ impl DiagnosticWithFixes for IncorrectCase { #[cfg(test)] mod change_case { use crate::{ - diagnostics::tests::{check_fix, check_no_diagnostics}, + diagnostics::tests::{check_diagnostics, check_fix}, fixture, AssistResolveStrategy, DiagnosticsConfig, }; @@ -102,7 +102,7 @@ fn some_fn() { #[test] fn test_uppercase_const_no_diagnostics() { - check_no_diagnostics( + check_diagnostics( r#" fn foo() { const ANOTHER_ITEM$0: &str = "some_item"; diff --git a/crates/ide/src/diagnostics/fixes/wrap_tail_expr.rs b/crates/ide/src/diagnostics/fixes/wrap_tail_expr.rs index 715a403b9..dcb21e037 100644 --- a/crates/ide/src/diagnostics/fixes/wrap_tail_expr.rs +++ b/crates/ide/src/diagnostics/fixes/wrap_tail_expr.rs @@ -25,7 +25,7 @@ impl DiagnosticWithFixes for MissingOkOrSomeInTailExpr { #[cfg(test)] mod tests { - use crate::diagnostics::tests::{check_fix, check_no_diagnostics}; + use crate::diagnostics::tests::{check_diagnostics, check_fix}; #[test] fn test_wrap_return_type_option() { @@ -169,7 +169,7 @@ fn div(x: i32, y: i32) -> MyResult { #[test] fn test_wrap_return_type_not_applicable_when_expr_type_does_not_match_ok_type() { - check_no_diagnostics( + check_diagnostics( r#" //- /main.rs crate:main deps:core use core::result::Result::{self, Ok, Err}; @@ -189,7 +189,7 @@ pub mod option { #[test] fn test_wrap_return_type_not_applicable_when_return_type_is_not_result_or_option() { - check_no_diagnostics( + check_diagnostics( r#" //- /main.rs crate:main deps:core use core::result::Result::{self, Ok, Err}; -- cgit v1.2.3