diff --git a/src/clipboard.rs b/src/clipboard.rs index f51f542..a8adb02 100644 --- a/src/clipboard.rs +++ b/src/clipboard.rs @@ -26,7 +26,7 @@ impl<'a> ClipboardHandler for Handler<'a> { } let result = subst.action.apply_action(&contents); if let Err(e) = self.ctx.set_contents(result) { - error!("{e}"); + error!("{}", e); } }; } diff --git a/src/config.rs b/src/config.rs index b4575cc..e40a315 100644 --- a/src/config.rs +++ b/src/config.rs @@ -98,8 +98,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().to_owned(), }; }