Skip to content

Commit 346fe34

Browse files
author
Victor Porof
authored
Merge pull request #169 from mozilla/clippy-to-string
Fix clippy `inefficient_to_string` warnings on string values
2 parents 0499ed0 + 3f50134 commit 346fe34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/value.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ impl<'s> From<&'s Value<'s>> for OwnedValue {
208208
Value::F64(v) => OwnedValue::F64(**v),
209209
Value::Instant(v) => OwnedValue::Instant(*v),
210210
Value::Uuid(v) => OwnedValue::Uuid(Uuid::from_bytes(**v)),
211-
Value::Str(v) => OwnedValue::Str(v.to_string()),
212-
Value::Json(v) => OwnedValue::Json(v.to_string()),
211+
Value::Str(v) => OwnedValue::Str((*v).to_string()),
212+
Value::Json(v) => OwnedValue::Json((*v).to_string()),
213213
Value::Blob(v) => OwnedValue::Blob(v.to_vec()),
214214
}
215215
}

0 commit comments

Comments
 (0)