From bd930740763beba31cbd8c5df1e176f5f2b04aa4 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Thu, 8 Dec 2022 14:48:35 +0100 Subject: [PATCH] clippy: fix warnings in tests --- crates/listener/src/proxy_protocol/v1.rs | 2 +- crates/oauth2-types/src/test_utils.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/listener/src/proxy_protocol/v1.rs b/crates/listener/src/proxy_protocol/v1.rs index 3329ca11..20677d9e 100644 --- a/crates/listener/src/proxy_protocol/v1.rs +++ b/crates/listener/src/proxy_protocol/v1.rs @@ -61,7 +61,7 @@ impl ParseError { impl ProxyProtocolV1Info { #[allow(clippy::too_many_lines)] - pub(super) fn parse(mut buf: B) -> Result + pub(super) fn parse(buf: &mut B) -> Result where B: Buf + AsRef<[u8]>, { diff --git a/crates/oauth2-types/src/test_utils.rs b/crates/oauth2-types/src/test_utils.rs index 09f453d2..7dc69f3c 100644 --- a/crates/oauth2-types/src/test_utils.rs +++ b/crates/oauth2-types/src/test_utils.rs @@ -21,7 +21,7 @@ pub(crate) fn assert_serde_json