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("\\/", "/")) } }