Skip to content

Commit

Permalink
Fix two clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbb committed Jun 8, 2024
1 parent 729e8d2 commit 3ae4424
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ sign-tag = true
tag = false

[workspace.lints.rust]
rust_2018_idioms = { level = "warn", priority = -1 }
missing_docs = "warn"
rust_2018_idioms = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unused_extern_crates = "warn"
Expand Down
3 changes: 1 addition & 2 deletions serde_with_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,7 @@ fn field_has_attribute(field: &Field, namespace: &str, name: &str) -> bool {
/// If `#[serde(borrow)]` or `#[serde(borrow = "...")]` is already present, this step will be
/// skipped.
///
/// 5. Restore the ability of accepting missing fields if both the field and the
/// transformation are `Option`.
/// 5. Restore the ability of accepting missing fields if both the field and the transformation are `Option`.
///
/// An `Option` is detected by an exact text match.
/// Renaming an import or type aliases can cause confusion here.
Expand Down

0 comments on commit 3ae4424

Please sign in to comment.