We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4eb6bd commit 183fadeCopy full SHA for 183fade
clippy_lints/src/blocks_in_conditions.rs
@@ -26,7 +26,10 @@ declare_clippy_lint! {
26
///
27
/// if { let x = somefunc(); x } { /* ... */ }
28
29
- /// match { let e = somefunc(); e } { /* ... */ }
+ /// match { let e = somefunc(); e } {
30
+ /// // ...
31
+ /// # _ => {}
32
+ /// }
33
/// ```
34
35
/// Use instead:
@@ -38,7 +41,10 @@ declare_clippy_lint! {
38
41
/// if res { /* ... */ }
39
42
40
43
/// let res = { let e = somefunc(); e };
- /// match res { /* ... */ }
44
+ /// match res {
45
46
47
48
49
#[clippy::version = "1.45.0"]
50
pub BLOCKS_IN_CONDITIONS,
0 commit comments