Skip to content

Commit

Permalink
simplify ToValue impl for str
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Nov 29, 2020
1 parent 785f237 commit c6be245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kv/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ impl ToValue for dyn self::sval::value::Value {
}
}

impl<'v> ToValue for &'v str {
impl ToValue for str {
fn to_value(&self) -> Value {
Value::from(*self)
Value::from(self)
}
}

Expand Down

0 comments on commit c6be245

Please sign in to comment.