macros: Fix errors from unused serde attributes with only server feature active
This commit is contained in:
parent
7bef8ea5ef
commit
05ad164d21
@ -214,7 +214,7 @@ impl Request {
|
||||
|
||||
quote! {
|
||||
/// Data in the request body.
|
||||
#[derive(Debug, #ruma_macros::_FakeDeriveRumaApi)]
|
||||
#[derive(Debug, #ruma_macros::_FakeDeriveRumaApi, #ruma_macros::_FakeDeriveSerde)]
|
||||
#[cfg_attr(feature = "client", derive(#serde::Serialize))]
|
||||
#[cfg_attr(
|
||||
feature = "server",
|
||||
@ -241,7 +241,7 @@ impl Request {
|
||||
|
||||
quote! {
|
||||
/// Data in the request's query string.
|
||||
#[derive(Debug, #ruma_macros::_FakeDeriveRumaApi)]
|
||||
#[derive(Debug, #ruma_macros::_FakeDeriveRumaApi, #ruma_macros::_FakeDeriveSerde)]
|
||||
#[cfg_attr(feature = "client", derive(#serde::Serialize))]
|
||||
#[cfg_attr(
|
||||
feature = "server",
|
||||
|
@ -110,7 +110,7 @@ impl Response {
|
||||
|
||||
quote! {
|
||||
/// Data in the response body.
|
||||
#[derive(Debug, #ruma_macros::_FakeDeriveRumaApi)]
|
||||
#[derive(Debug, #ruma_macros::_FakeDeriveRumaApi, #ruma_macros::_FakeDeriveSerde)]
|
||||
#serde_derives
|
||||
#serde_attr
|
||||
struct ResponseBody { #(#fields),* }
|
||||
|
Loading…
x
Reference in New Issue
Block a user