mirror of
https://github.com/msfjarvis/clipboard-substitutor
synced 2025-08-14 20:07:01 +05:30
fix(config): resolve clippy::needless-return
lint
This commit is contained in:
parent
8a5ffbffa3
commit
0a425cf59d
1 changed files with 2 additions and 2 deletions
|
@ -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(),
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue