Skip to content

Commit 9b0c18f

Browse files
committed
Fix clippy inefficient_to_string warnings on string values
Signed-off-by: Victor Porof <[email protected]>
1 parent 2e3e2a4 commit 9b0c18f

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)