Remove allow(clippy::inconsistent_struct_constructor)

The lint was buggy, but that has now been fixed.
This commit is contained in:
Jonas Platte 2021-05-06 14:18:13 +02:00
parent 325c0adf69
commit 1dc72de70e
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
4 changed files with 0 additions and 4 deletions

View File

@ -211,7 +211,6 @@ impl Request {
quote! { quote! {
#[automatically_derived] #[automatically_derived]
#[cfg(feature = "server")] #[cfg(feature = "server")]
#[allow(clippy::unknown_clippy_lints, clippy::inconsistent_struct_constructor)]
impl #ruma_api::IncomingRequest for #incoming_request_type { impl #ruma_api::IncomingRequest for #incoming_request_type {
type EndpointError = #error_ty; type EndpointError = #error_ty;
type OutgoingResponse = Response; type OutgoingResponse = Response;

View File

@ -200,7 +200,6 @@ impl Request {
quote! { quote! {
#[automatically_derived] #[automatically_derived]
#[cfg(feature = "client")] #[cfg(feature = "client")]
#[allow(clippy::unknown_clippy_lints, clippy::inconsistent_struct_constructor)]
impl #lifetimes #ruma_api::OutgoingRequest for Request #lifetimes { impl #lifetimes #ruma_api::OutgoingRequest for Request #lifetimes {
type EndpointError = #error_ty; type EndpointError = #error_ty;
type IncomingResponse = <Response as #ruma_serde::Outgoing>::Incoming; type IncomingResponse = <Response as #ruma_serde::Outgoing>::Incoming;

View File

@ -116,7 +116,6 @@ impl Response {
quote! { quote! {
#[automatically_derived] #[automatically_derived]
#[cfg(feature = "client")] #[cfg(feature = "client")]
#[allow(clippy::unknown_clippy_lints, clippy::inconsistent_struct_constructor)]
impl #ruma_api::IncomingResponse for Response { impl #ruma_api::IncomingResponse for Response {
type EndpointError = #error_ty; type EndpointError = #error_ty;

View File

@ -71,7 +71,6 @@ impl Response {
quote! { quote! {
#[automatically_derived] #[automatically_derived]
#[cfg(feature = "server")] #[cfg(feature = "server")]
#[allow(clippy::unknown_clippy_lints, clippy::inconsistent_struct_constructor)]
impl #ruma_api::OutgoingResponse for Response { impl #ruma_api::OutgoingResponse for Response {
fn try_into_http_response<T: ::std::default::Default + #bytes::BufMut>( fn try_into_http_response<T: ::std::default::Default + #bytes::BufMut>(
self, self,