From 62af9c13d90881b5becd76dca3eae145c602fd82 Mon Sep 17 00:00:00 2001 From: FabianLars Date: Mon, 24 Apr 2023 15:25:53 +0200 Subject: [PATCH] clippy --- plugins/persisted-scope/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/persisted-scope/src/lib.rs b/plugins/persisted-scope/src/lib.rs index 46e227a5..ee6903d6 100644 --- a/plugins/persisted-scope/src/lib.rs +++ b/plugins/persisted-scope/src/lib.rs @@ -52,13 +52,13 @@ struct Scope { } fn fix_pattern(ac: &AhoCorasick, s: &str) -> String { - let s = ac.replace_all(&s, REPLACE_WITH); + let s = ac.replace_all(s, REPLACE_WITH); if ac.find(&s).is_some() { return fix_pattern(ac, &s); } - s.to_string() + s } pub fn init() -> TauriPlugin {