fix(config): resolve clippy::needless-return lint

This commit is contained in:
Harsh Shandilya 2022-06-09 09:54:36 +05:30
parent 8a5ffbffa3
commit 0a425cf59d
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -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(),
};
}
}
}