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! {
|
quote! {
|
||||||
/// Data in the request body.
|
/// 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 = "client", derive(#serde::Serialize))]
|
||||||
#[cfg_attr(
|
#[cfg_attr(
|
||||||
feature = "server",
|
feature = "server",
|
||||||
@ -241,7 +241,7 @@ impl Request {
|
|||||||
|
|
||||||
quote! {
|
quote! {
|
||||||
/// Data in the request's query string.
|
/// 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 = "client", derive(#serde::Serialize))]
|
||||||
#[cfg_attr(
|
#[cfg_attr(
|
||||||
feature = "server",
|
feature = "server",
|
||||||
|
@ -110,7 +110,7 @@ impl Response {
|
|||||||
|
|
||||||
quote! {
|
quote! {
|
||||||
/// Data in the response body.
|
/// Data in the response body.
|
||||||
#[derive(Debug, #ruma_macros::_FakeDeriveRumaApi)]
|
#[derive(Debug, #ruma_macros::_FakeDeriveRumaApi, #ruma_macros::_FakeDeriveSerde)]
|
||||||
#serde_derives
|
#serde_derives
|
||||||
#serde_attr
|
#serde_attr
|
||||||
struct ResponseBody { #(#fields),* }
|
struct ResponseBody { #(#fields),* }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user