1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-28 11:02:02 +03:00

clippy: fix warnings in tests

This commit is contained in:
Quentin Gliech
2022-12-08 14:48:35 +01:00
parent 0ea9089f7f
commit bd93074076
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ pub(crate) fn assert_serde_json<T: Serialize + DeserializeOwned + PartialEq + De
got: &T,
expected_value: serde_json::Value,
) {
let got_value = serde_json::to_value(&got).expect("could not serialize object as JSON value");
let got_value = serde_json::to_value(got).expect("could not serialize object as JSON value");
assert_eq!(got_value, expected_value);
let expected: T = serde_json::from_value(expected_value)