You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-29 22:01:14 +03:00
clippy: fix warnings in tests
This commit is contained in:
@ -61,7 +61,7 @@ impl ParseError {
|
||||
|
||||
impl ProxyProtocolV1Info {
|
||||
#[allow(clippy::too_many_lines)]
|
||||
pub(super) fn parse<B>(mut buf: B) -> Result<Self, ParseError>
|
||||
pub(super) fn parse<B>(buf: &mut B) -> Result<Self, ParseError>
|
||||
where
|
||||
B: Buf + AsRef<[u8]>,
|
||||
{
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user