mirror of
https://github.com/msfjarvis/clipboard-substitutor
synced 2025-08-15 00:47:01 +05:30
all: update trivial formatting macros to use implicit capture
This commit is contained in:
parent
84afa4573f
commit
0a0919faf6
2 changed files with 3 additions and 3 deletions
|
@ -75,8 +75,8 @@ impl Act for Action<'_> {
|
|||
fn apply_action(self, input: &str) -> String {
|
||||
return match self {
|
||||
Action::Replace { from, to } => input.replace(from, to),
|
||||
Action::Prefix { prefix } => format!("{}{}", prefix, input),
|
||||
Action::Suffix { suffix } => format!("{}{}", input, suffix),
|
||||
Action::Prefix { prefix } => format!("{prefix}{input}"),
|
||||
Action::Suffix { suffix } => format!("{input}{suffix}"),
|
||||
Action::Set { content } => content.to_owned(),
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue