Skip to content

Commit fc1de8f

Browse files
committed
address lints
1 parent cfc7f8b commit fc1de8f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

sqlx-core/src/any/types/json.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ where
2828
}
2929
}
3030

31-
impl<'r, T> Decode<'_, Any> for Json<T>
31+
impl<T> Decode<'_, Any> for Json<T>
3232
where
3333
T: for<'de> Deserialize<'de>,
3434
{
3535
fn decode(value: AnyValueRef<'_>) -> Result<Self, BoxDynError> {
3636
match value.kind {
37-
AnyValueKind::Text(text) => Json::decode_from_string(&text.into_owned()),
38-
AnyValueKind::Blob(blob) => Json::decode_from_bytes(&blob.into_owned()),
37+
AnyValueKind::Text(text) => Json::decode_from_string(&text),
38+
AnyValueKind::Blob(blob) => Json::decode_from_bytes(&blob),
3939
other => other.unexpected(),
4040
}
4141
}

sqlx-core/src/any/types/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn test_type_impls() {
5151
// These imply that there are also impls for the equivalent slice types.
5252
has_type::<Vec<u8>>();
5353
has_type::<String>();
54-
54+
5555
// JSON types
5656
has_type::<crate::types::Json<serde_json::Value>>();
5757
}

0 commit comments

Comments
 (0)