From 3ae442485e34c8b0c3c34fa3c953fa77e0a1a19d Mon Sep 17 00:00:00 2001 From: Jonas Bushart Date: Sat, 8 Jun 2024 13:02:14 +0200 Subject: [PATCH] Fix two clippy issues --- Cargo.toml | 2 +- serde_with_macros/src/lib.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a406834e..972d1312 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/serde_with_macros/src/lib.rs b/serde_with_macros/src/lib.rs index b08842fd..308a7c94 100644 --- a/serde_with_macros/src/lib.rs +++ b/serde_with_macros/src/lib.rs @@ -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.