diff options
author | Maan2003 <[email protected]> | 2021-06-13 05:05:29 +0100 |
---|---|---|
committer | Maan2003 <[email protected]> | 2021-06-13 05:05:29 +0100 |
commit | c50b4579ec842ac7c1f52e0e3c834d50fc9cd1bb (patch) | |
tree | e70b18936d014aa3038c4a6283e200f0a479aeb1 /crates/ide_assists | |
parent | 75370312fbfe072947ffdc568eebc9cb4c6108e4 (diff) |
clippy::useless_return
Diffstat (limited to 'crates/ide_assists')
-rw-r--r-- | crates/ide_assists/src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ide_assists/src/lib.rs b/crates/ide_assists/src/lib.rs index 16af72927..331a6df2b 100644 --- a/crates/ide_assists/src/lib.rs +++ b/crates/ide_assists/src/lib.rs | |||
@@ -47,14 +47,14 @@ impl AssistKind { | |||
47 | } | 47 | } |
48 | 48 | ||
49 | match self { | 49 | match self { |
50 | AssistKind::None | AssistKind::Generate => return true, | 50 | AssistKind::None | AssistKind::Generate => true, |
51 | AssistKind::Refactor => match other { | 51 | AssistKind::Refactor => match other { |
52 | AssistKind::RefactorExtract | 52 | AssistKind::RefactorExtract |
53 | | AssistKind::RefactorInline | 53 | | AssistKind::RefactorInline |
54 | | AssistKind::RefactorRewrite => return true, | 54 | | AssistKind::RefactorRewrite => true, |
55 | _ => return false, | 55 | _ => false, |
56 | }, | 56 | }, |
57 | _ => return false, | 57 | _ => false, |
58 | } | 58 | } |
59 | } | 59 | } |
60 | 60 | ||