api-macros: Silence clippy::inconsistent_struct_constructor in generated code
This commit is contained in:
parent
15433a9751
commit
15d92728ca
@ -215,6 +215,7 @@ impl Request {
|
||||
quote! {
|
||||
#[automatically_derived]
|
||||
#[cfg(feature = "server")]
|
||||
#[allow(clippy::inconsistent_struct_constructor)]
|
||||
impl #ruma_api::IncomingRequest for #incoming_request_type {
|
||||
type EndpointError = #error_ty;
|
||||
type OutgoingResponse = Response;
|
||||
|
@ -190,6 +190,7 @@ impl Request {
|
||||
quote! {
|
||||
#[automatically_derived]
|
||||
#[cfg(feature = "client")]
|
||||
#[allow(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,6 +116,7 @@ impl Response {
|
||||
quote! {
|
||||
#[automatically_derived]
|
||||
#[cfg(feature = "client")]
|
||||
#[allow(clippy::inconsistent_struct_constructor)]
|
||||
impl #ruma_api::IncomingResponse for Response {
|
||||
type EndpointError = #error_ty;
|
||||
|
||||
|
@ -70,6 +70,7 @@ impl Response {
|
||||
quote! {
|
||||
#[automatically_derived]
|
||||
#[cfg(feature = "server")]
|
||||
#[allow(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