From c50b4579ec842ac7c1f52e0e3c834d50fc9cd1bb Mon Sep 17 00:00:00 2001 From: Maan2003 Date: Sun, 13 Jun 2021 09:35:29 +0530 Subject: clippy::useless_return --- crates/ide_assists/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/ide_assists') 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 { } match self { - AssistKind::None | AssistKind::Generate => return true, + AssistKind::None | AssistKind::Generate => true, AssistKind::Refactor => match other { AssistKind::RefactorExtract | AssistKind::RefactorInline - | AssistKind::RefactorRewrite => return true, - _ => return false, + | AssistKind::RefactorRewrite => true, + _ => false, }, - _ => return false, + _ => false, } } -- cgit v1.2.3