aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/diagnostics/fixes/wrap_tail_expr.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-06-13 17:27:14 +0100
committerAleksey Kladov <[email protected]>2021-06-13 17:27:24 +0100
commitdec207f56a7b16075f68dcb89138d93a7eecdf43 (patch)
treea9c198dde6ff1845ee3bf634bc0de888f4ef40e5 /crates/ide/src/diagnostics/fixes/wrap_tail_expr.rs
parenta1940d8c75bee8c319e7e7f19607bdc4b01c28d4 (diff)
minor: simplify
Diffstat (limited to 'crates/ide/src/diagnostics/fixes/wrap_tail_expr.rs')
-rw-r--r--crates/ide/src/diagnostics/fixes/wrap_tail_expr.rs6
1 files changed, 3 insertions, 3 deletions
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 {
25 25
26#[cfg(test)] 26#[cfg(test)]
27mod tests { 27mod tests {
28 use crate::diagnostics::tests::{check_fix, check_no_diagnostics}; 28 use crate::diagnostics::tests::{check_diagnostics, check_fix};
29 29
30 #[test] 30 #[test]
31 fn test_wrap_return_type_option() { 31 fn test_wrap_return_type_option() {
@@ -169,7 +169,7 @@ fn div(x: i32, y: i32) -> MyResult<i32> {
169 169
170 #[test] 170 #[test]
171 fn test_wrap_return_type_not_applicable_when_expr_type_does_not_match_ok_type() { 171 fn test_wrap_return_type_not_applicable_when_expr_type_does_not_match_ok_type() {
172 check_no_diagnostics( 172 check_diagnostics(
173 r#" 173 r#"
174//- /main.rs crate:main deps:core 174//- /main.rs crate:main deps:core
175use core::result::Result::{self, Ok, Err}; 175use core::result::Result::{self, Ok, Err};
@@ -189,7 +189,7 @@ pub mod option {
189 189
190 #[test] 190 #[test]
191 fn test_wrap_return_type_not_applicable_when_return_type_is_not_result_or_option() { 191 fn test_wrap_return_type_not_applicable_when_return_type_is_not_result_or_option() {
192 check_no_diagnostics( 192 check_diagnostics(
193 r#" 193 r#"
194//- /main.rs crate:main deps:core 194//- /main.rs crate:main deps:core
195use core::result::Result::{self, Ok, Err}; 195use core::result::Result::{self, Ok, Err};