Skip to content

Commit

Permalink
Fix clippy::empty_line_after_doc_comments (#785)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbb authored Oct 1, 2024
2 parents 67326f8 + c4e6b13 commit efb6b41
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion serde_with/src/base64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ALPHABET: Alphabet = Standard, PADDING: formats::Format = formats::Padded>(
Expand Down
1 change: 0 additions & 1 deletion serde_with/src/key_value_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<M> {
delegate: M,
is_human_readable: bool,
Expand Down
2 changes: 1 addition & 1 deletion serde_with_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<S>", no_default)]`.
///
/// After all these steps, the code snippet will have transformed into roughly this.
Expand Down

0 comments on commit efb6b41

Please sign in to comment.