From c4e6b13720702344f300e82bbfcda8f3008f5d7e Mon Sep 17 00:00:00 2001 From: Jonas Bushart Date: Tue, 1 Oct 2024 20:28:48 +0200 Subject: [PATCH] Fix clippy::empty_line_after_doc_comments --- serde_with/src/base64.rs | 1 - serde_with/src/key_value_map.rs | 1 - serde_with_macros/src/lib.rs | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/serde_with/src/base64.rs b/serde_with/src/base64.rs index 921f9aa9..cedc4f29 100644 --- a/serde_with/src/base64.rs +++ b/serde_with/src/base64.rs @@ -59,7 +59,6 @@ use crate::prelude::*; /// assert_eq!(b64, serde_json::from_value(json).unwrap()); /// # } /// ``` - // The padding might be better as `const PADDING: bool = true` // https://blog.rust-lang.org/inside-rust/2021/09/06/Splitting-const-generics.html#featureconst_generics_default/ pub struct Base64( diff --git a/serde_with/src/key_value_map.rs b/serde_with/src/key_value_map.rs index 9418b9eb..3a16735c 100644 --- a/serde_with/src/key_value_map.rs +++ b/serde_with/src/key_value_map.rs @@ -415,7 +415,6 @@ where /// It uses [`ElementAsKeyValueSerializer`] for the map element serialization. /// /// The [`Serializer`] implementation handles `serialize_struct`, `serialize_map` and `serialize_seq` functions by deferring the work to [`SerializeStruct`], [`SerializeMap`] and [`SerializeSeq`] respectively. - struct SerializeSeqElement { delegate: M, is_human_readable: bool, diff --git a/serde_with_macros/src/lib.rs b/serde_with_macros/src/lib.rs index 79c63c22..733ae953 100644 --- a/serde_with_macros/src/lib.rs +++ b/serde_with_macros/src/lib.rs @@ -562,7 +562,7 @@ fn field_has_attribute(field: &Field, namespace: &str, name: &str) -> bool { /// /// If the automatically applied attribute is undesired, the behavior can be suppressed by adding /// `#[serde_as(no_default)]`. - +/// /// This can be combined like `#[serde_as(as = "Option", no_default)]`. /// /// After all these steps, the code snippet will have transformed into roughly this.