From b75d11e0d09f65818783b49acabd73f865fb67dc Mon Sep 17 00:00:00 2001 From: Jonas Bushart Date: Mon, 23 May 2022 12:38:24 +0000 Subject: [PATCH] Fix clippy false positive https://github.com/rust-lang/rust-clippy/issues/8867 --- serde_with/src/lib.rs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/serde_with/src/lib.rs b/serde_with/src/lib.rs index 45bd178b..5531a633 100644 --- a/serde_with/src/lib.rs +++ b/serde_with/src/lib.rs @@ -27,10 +27,15 @@ #![doc(test(no_crate_inject))] #![doc(html_root_url = "https://docs.rs/serde_with/1.13.0")] #![cfg_attr(docsrs, feature(doc_cfg))] -// clippy is broken and shows wrong warnings -// clippy on stable does not know yet about the lint name -// https://github.com/rust-lang/rust-clippy/issues/8560 -#![allow(unknown_lints, clippy::only_used_in_recursion)] +#![allow( + // clippy is broken and shows wrong warnings + // clippy on stable does not know yet about the lint name + unknown_lints, + // https://github.com/rust-lang/rust-clippy/issues/8560 + clippy::only_used_in_recursion, + // https://github.com/rust-lang/rust-clippy/issues/8867 + clippy::derive_partial_eq_without_eq +)] #![no_std] //! [![crates.io badge](https://img.shields.io/crates/v/serde_with.svg)](https://crates.io/crates/serde_with/)