diff --git a/src/config.rs b/src/config.rs index 50ffafa..8136ab1 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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(), }; } diff --git a/src/main.rs b/src/main.rs index 9287e08..40e873b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -32,7 +32,7 @@ fn main() -> Result<()> { } let result = subst.action.clone().apply_action(contents.deref()); if let Err(e) = clipboard.set_contents(result.to_owned()) { - error!("{}", e); + error!("{e}"); } }; while let Ok(new_contents) = get_clipboard_contents(&mut clipboard) {