From 0eb6b17f07c1c4caa62b430b17acdb1101a2181b Mon Sep 17 00:00:00 2001 From: ancorehraq <70878081+ancorehraq@users.noreply.github.com> Date: Sat, 7 Oct 2023 01:34:54 +0000 Subject: [PATCH] Mention serde_as in docstring for 'apply' --- serde_with_macros/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serde_with_macros/src/lib.rs b/serde_with_macros/src/lib.rs index ca7b5f04..358a18b1 100644 --- a/serde_with_macros/src/lib.rs +++ b/serde_with_macros/src/lib.rs @@ -1194,8 +1194,8 @@ pub fn __private_consume_serde_as_attributes(_: TokenStream) -> TokenStream { /// Whenever you experience the need to apply the same attributes to multiple fields, you can use /// this macro. It allows you to specify a list of types and a list of attributes. /// Each field with a "matching" type will then get the attributes applied. -/// The `apply` attribute must be place *before* any consuming attributes, such as `derive`, because -/// Rust expands all attributes in order. +/// The `apply` attribute must be placed *before* any consuming attributes, such as `derive` or +/// `serde_as`, because Rust expands all attributes in order. /// /// For example, if your struct or enum contains many `Option` fields, but you do not want to /// serialize `None` values, you can use this macro to apply the `#[serde(skip_serializing_if =