api-macros: Silence warning about unknown clippy lint for older clippy versions

This commit is contained in:
Jonas Platte 2021-04-13 15:08:33 +02:00
parent 12b2d65e45
commit 96aa55e3b9
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
4 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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,