api-macros: Silence warning about unknown clippy lint for older clippy versions
This commit is contained in:
parent
12b2d65e45
commit
96aa55e3b9
@ -215,7 +215,7 @@ impl Request {
|
||||
quote! {
|
||||
#[automatically_derived]
|
||||
#[cfg(feature = "server")]
|
||||
#[allow(clippy::inconsistent_struct_constructor)]
|
||||
#[allow(clippy::unknown_clippy_lints, clippy::inconsistent_struct_constructor)]
|
||||
impl #ruma_api::IncomingRequest for #incoming_request_type {
|
||||
type EndpointError = #error_ty;
|
||||
type OutgoingResponse = Response;
|
||||
|
@ -190,7 +190,7 @@ impl Request {
|
||||
quote! {
|
||||
#[automatically_derived]
|
||||
#[cfg(feature = "client")]
|
||||
#[allow(clippy::inconsistent_struct_constructor)]
|
||||
#[allow(clippy::unknown_clippy_lints, clippy::inconsistent_struct_constructor)]
|
||||
impl #lifetimes #ruma_api::OutgoingRequest for Request #lifetimes {
|
||||
type EndpointError = #error_ty;
|
||||
type IncomingResponse = <Response as #ruma_serde::Outgoing>::Incoming;
|
||||
|
@ -116,7 +116,7 @@ impl Response {
|
||||
quote! {
|
||||
#[automatically_derived]
|
||||
#[cfg(feature = "client")]
|
||||
#[allow(clippy::inconsistent_struct_constructor)]
|
||||
#[allow(clippy::unknown_clippy_lints, clippy::inconsistent_struct_constructor)]
|
||||
impl #ruma_api::IncomingResponse for Response {
|
||||
type EndpointError = #error_ty;
|
||||
|
||||
|
@ -70,7 +70,7 @@ impl Response {
|
||||
quote! {
|
||||
#[automatically_derived]
|
||||
#[cfg(feature = "server")]
|
||||
#[allow(clippy::inconsistent_struct_constructor)]
|
||||
#[allow(clippy::unknown_clippy_lints, clippy::inconsistent_struct_constructor)]
|
||||
impl #ruma_api::OutgoingResponse for Response {
|
||||
fn try_into_http_response(
|
||||
self,
|
||||
|
Loading…
x
Reference in New Issue
Block a user