diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-06-13 17:33:03 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-13 17:33:03 +0100 |
commit | 8e5f469da8d5ed0e4c0519c883498097aeadd7ac (patch) | |
tree | a9c198dde6ff1845ee3bf634bc0de888f4ef40e5 /crates/ide/src/diagnostics/fixes/wrap_tail_expr.rs | |
parent | a8d815590821c1b689342e443e584d5b69af6341 (diff) | |
parent | dec207f56a7b16075f68dcb89138d93a7eecdf43 (diff) |
Merge #9251
9251: minor: simplify r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ide/src/diagnostics/fixes/wrap_tail_expr.rs')
-rw-r--r-- | crates/ide/src/diagnostics/fixes/wrap_tail_expr.rs | 6 |
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)] |
27 | mod tests { | 27 | mod 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 |
175 | use core::result::Result::{self, Ok, Err}; | 175 | use 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 |
195 | use core::result::Result::{self, Ok, Err}; | 195 | use core::result::Result::{self, Ok, Err}; |