You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-31 09:24:31 +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:
@ -19,7 +19,8 @@
|
|||||||
clippy::module_name_repetitions,
|
clippy::module_name_repetitions,
|
||||||
clippy::missing_panics_doc,
|
clippy::missing_panics_doc,
|
||||||
clippy::missing_errors_doc,
|
clippy::missing_errors_doc,
|
||||||
clippy::trait_duplication_in_bounds
|
clippy::trait_duplication_in_bounds,
|
||||||
|
clippy::type_repetition_in_bounds
|
||||||
)]
|
)]
|
||||||
|
|
||||||
pub(crate) mod compat;
|
pub(crate) mod compat;
|
||||||
|
@ -50,7 +50,8 @@ mod views;
|
|||||||
#[allow(
|
#[allow(
|
||||||
clippy::too_many_lines,
|
clippy::too_many_lines,
|
||||||
clippy::missing_panics_doc,
|
clippy::missing_panics_doc,
|
||||||
clippy::too_many_arguments
|
clippy::too_many_arguments,
|
||||||
|
clippy::trait_duplication_in_bounds
|
||||||
)]
|
)]
|
||||||
pub fn router<B>(
|
pub fn router<B>(
|
||||||
pool: &PgPool,
|
pool: &PgPool,
|
||||||
|
@ -121,12 +121,12 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn client<B, E: 'static>(
|
pub fn client<B, E>(
|
||||||
operation: &'static str,
|
operation: &'static str,
|
||||||
) -> BoxCloneService<Request<B>, Response<BoxBody<bytes::Bytes, ClientError>>, ClientError>
|
) -> BoxCloneService<Request<B>, Response<BoxBody<bytes::Bytes, ClientError>>, ClientError>
|
||||||
where
|
where
|
||||||
B: http_body::Body<Data = Bytes, Error = E> + Default + Send + 'static,
|
B: http_body::Body<Data = Bytes, Error = E> + Default + Send + 'static,
|
||||||
E: Into<BoxError>,
|
E: Into<BoxError> + 'static,
|
||||||
{
|
{
|
||||||
let fut = make_base_client()
|
let fut = make_base_client()
|
||||||
// Map the error to a ClientError
|
// Map the error to a ClientError
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
//! Contexts used in templates
|
//! Contexts used in templates
|
||||||
|
|
||||||
#![allow(clippy::trait_duplication_in_bounds)]
|
#![allow(clippy::trait_duplication_in_bounds, clippy::type_repetition_in_bounds)]
|
||||||
|
|
||||||
use chrono::Utc;
|
use chrono::Utc;
|
||||||
use mas_data_model::{
|
use mas_data_model::{
|
||||||
|
Reference in New Issue
Block a user