From 0a425cf59de40a598c76ecacc77012d25725842a Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 9 Jun 2022 09:54:36 +0530 Subject: [PATCH] fix(config): resolve `clippy::needless-return` lint --- src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index e40a315..dfb33dd 100644 --- a/src/config.rs +++ b/src/config.rs @@ -96,11 +96,11 @@ impl Match for MatcherType<'_> { impl Act for Action<'_> { fn apply_action(&self, input: &str) -> String { - return match self { + match self { Action::Replace { from, to } => input.replace(from, to), Action::Prefix { prefix } => format!("{}{}", prefix, input), Action::Suffix { suffix } => format!("{}{}", input, suffix), Action::Set { content } => content.to_owned().to_owned(), - }; + } } }