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

Fix some false-positive clippy lints

Those were introduced in clippy 1.62 (under clippy::pedantic) and are in
proc-macro generated code
This commit is contained in:
Quentin Gliech
2022-07-01 15:49:43 +02:00
parent 52a400eb9e
commit 4870d1e899
4 changed files with 7 additions and 5 deletions

View File

@@ -121,12 +121,12 @@ where
}
#[must_use]
pub fn client<B, E: 'static>(
pub fn client<B, E>(
operation: &'static str,
) -> BoxCloneService<Request<B>, Response<BoxBody<bytes::Bytes, ClientError>>, ClientError>
where
B: http_body::Body<Data = Bytes, Error = E> + Default + Send + 'static,
E: Into<BoxError>,
E: Into<BoxError> + 'static,
{
let fut = make_base_client()
// Map the error to a ClientError