Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikDeSmedt committed Oct 27, 2023
1 parent db01f56 commit 32f76b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/gl-client/src/lsps/lsps0/common_schemas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<IsoDatetime>(&datetime_str).unwrap();
let dt = serde_json::from_str::<IsoDatetime>(datetime_str).unwrap();

assert_eq!(dt.datetime.year(), 2023);
assert_eq!(dt.datetime.month(), time::Month::January);
Expand All @@ -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::<IsoDatetime>(&datetime_str);
let result = serde_json::from_str::<IsoDatetime>(datetime_str);
result.expect_err("datetime_str should not be parsed if it doesn't follow spec");
}
}

0 comments on commit 32f76b5

Please sign in to comment.