From 53a94c4c7b2c162258e06b84a29bfd1d64b1b43b Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Thu, 19 May 2022 15:20:09 -0400 Subject: [PATCH] fix: Don't use clippy::use_self in influxdb2_client due to false positive See https://github.com/rust-lang/rust-clippy/issues/6902 It's an interaction between clippy and serde; the lint produces confusing and incorrect warnings. --- influxdb2_client/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/influxdb2_client/src/lib.rs b/influxdb2_client/src/lib.rs index 6e36bb3fe5..3f53c11459 100644 --- a/influxdb2_client/src/lib.rs +++ b/influxdb2_client/src/lib.rs @@ -1,10 +1,11 @@ #![deny(rustdoc::broken_intra_doc_links, rustdoc::bare_urls, rust_2018_idioms)] +// `clippy::use_self` is deliberately excluded from the lints this crate uses. +// See . #![warn( missing_copy_implementations, missing_debug_implementations, missing_docs, clippy::explicit_iter_loop, - clippy::use_self, clippy::clone_on_ref_ptr, clippy::future_not_send )]