From 32f76b5fa9f3e8bf3ba6102a0bb4cd1fab49f246 Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Wed, 20 Sep 2023 15:07:44 +0200 Subject: [PATCH] Clippy fixes --- libs/gl-client/src/lsps/lsps0/common_schemas.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/gl-client/src/lsps/lsps0/common_schemas.rs b/libs/gl-client/src/lsps/lsps0/common_schemas.rs index 25d087fbe..267e2577b 100644 --- a/libs/gl-client/src/lsps/lsps0/common_schemas.rs +++ b/libs/gl-client/src/lsps/lsps0/common_schemas.rs @@ -178,7 +178,7 @@ mod test { fn parse_and_serialize_datetime() { let datetime_str = "\"2023-01-01T23:59:59.999Z\""; - let dt = serde_json::from_str::(&datetime_str).unwrap(); + let dt = serde_json::from_str::(datetime_str).unwrap(); assert_eq!(dt.datetime.year(), 2023); assert_eq!(dt.datetime.month(), time::Month::January); @@ -199,7 +199,7 @@ mod test { // However, in LSPS2 the datetime_str must be repeated verbatim let datetime_str = "\"2023-01-01T23:59:59.99Z\""; - let result = serde_json::from_str::(&datetime_str); + let result = serde_json::from_str::(datetime_str); result.expect_err("datetime_str should not be parsed if it doesn't follow spec"); } }