From ca80e732852a7cc5f49ee863d240a01942c04176 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Tue, 10 May 2022 09:22:38 +0100 Subject: [PATCH] Fix clippy lint warnings --- lib/src/sql/regex.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/sql/regex.rs b/lib/src/sql/regex.rs index 172598c7..7d3398ba 100644 --- a/lib/src/sql/regex.rs +++ b/lib/src/sql/regex.rs @@ -13,7 +13,7 @@ pub struct Regex(String); impl<'a> From<&'a str> for Regex { fn from(r: &str) -> Regex { - Regex(r.replace("\\/", "/").to_string()) + Regex(r.replace("\\/", "/")) } }