From 2f72e3e49635a852234db46fab85a4d0cd1c2203 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 24 Jan 2023 17:38:27 +0000 Subject: [PATCH] fix: address Clippy lints --- src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index 3c855f7..e6533ea 100644 --- a/src/config.rs +++ b/src/config.rs @@ -94,7 +94,7 @@ impl Match for Matcher { false } } - Matcher::Exactly { content } => &string == content, + Matcher::Exactly { content } => string == content, } } } @@ -117,7 +117,7 @@ impl Act for Action { 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(), + Action::Set { content } => content.clone(), } } }