diff --git a/lib/src/sql/datetime.rs b/lib/src/sql/datetime.rs index 8dde7c71..ed3e4a0e 100644 --- a/lib/src/sql/datetime.rs +++ b/lib/src/sql/datetime.rs @@ -32,7 +32,7 @@ impl From> for Datetime { } } -impl<'a> From<&'a str> for Datetime { +impl From<&str> for Datetime { fn from(s: &str) -> Self { match datetime_raw(s) { Ok((_, v)) => v, diff --git a/lib/src/sql/duration.rs b/lib/src/sql/duration.rs index 75340e6d..99fb842a 100644 --- a/lib/src/sql/duration.rs +++ b/lib/src/sql/duration.rs @@ -37,7 +37,7 @@ impl From for Duration { } } -impl<'a> From<&'a str> for Duration { +impl From<&str> for Duration { fn from(s: &str) -> Self { match duration(s) { Ok((_, v)) => v, diff --git a/lib/src/sql/ident.rs b/lib/src/sql/ident.rs index 3b6efb0a..73f78a10 100644 --- a/lib/src/sql/ident.rs +++ b/lib/src/sql/ident.rs @@ -30,13 +30,13 @@ impl From for Ident { } } -impl<'a> From<&'a str> for Ident { +impl From<&str> for Ident { fn from(i: &str) -> Ident { Ident(String::from(i)) } } -impl<'a> From<&'a String> for Ident { +impl From<&String> for Ident { fn from(i: &String) -> Ident { Ident(String::from(i)) } diff --git a/lib/src/sql/number.rs b/lib/src/sql/number.rs index 920cc2cf..1ec2db38 100644 --- a/lib/src/sql/number.rs +++ b/lib/src/sql/number.rs @@ -106,7 +106,7 @@ impl From for Number { } } -impl<'a> From<&'a str> for Number { +impl From<&str> for Number { fn from(s: &str) -> Self { Number::Decimal(BigDecimal::from_str(s).unwrap_or_default()) } diff --git a/lib/src/sql/regex.rs b/lib/src/sql/regex.rs index 7d3398ba..ef48ef40 100644 --- a/lib/src/sql/regex.rs +++ b/lib/src/sql/regex.rs @@ -11,7 +11,7 @@ use std::str; #[derive(Clone, Debug, Default, Eq, Ord, PartialEq, PartialOrd, Serialize, Deserialize)] pub struct Regex(String); -impl<'a> From<&'a str> for Regex { +impl From<&str> for Regex { fn from(r: &str) -> Regex { Regex(r.replace("\\/", "/")) } diff --git a/lib/src/sql/script.rs b/lib/src/sql/script.rs index f51da791..b47b7d82 100644 --- a/lib/src/sql/script.rs +++ b/lib/src/sql/script.rs @@ -32,7 +32,7 @@ impl From for Script { } } -impl<'a> From<&'a str> for Script { +impl From<&str> for Script { fn from(s: &str) -> Self { Script(String::from(s)) } diff --git a/lib/src/sql/strand.rs b/lib/src/sql/strand.rs index 8c3fc58f..986ae3c5 100644 --- a/lib/src/sql/strand.rs +++ b/lib/src/sql/strand.rs @@ -27,7 +27,7 @@ impl From for Strand { } } -impl<'a> From<&'a str> for Strand { +impl From<&str> for Strand { fn from(s: &str) -> Self { Strand(String::from(s)) } diff --git a/lib/src/sql/value/value.rs b/lib/src/sql/value/value.rs index 52110d72..cc872f3a 100644 --- a/lib/src/sql/value/value.rs +++ b/lib/src/sql/value/value.rs @@ -312,7 +312,7 @@ impl From for Value { } } -impl<'a> From<&'a str> for Value { +impl From<&str> for Value { fn from(v: &str) -> Self { Value::Strand(Strand::from(v)) }