From b6b78af9461a42526007b018dc77cf2d2592b06a Mon Sep 17 00:00:00 2001 From: Smitty Date: Thu, 29 Sep 2022 13:56:13 -0400 Subject: [PATCH] Fix clippy lints --- extension/src/hyperloglog.rs | 1 + extension/src/lib.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/extension/src/hyperloglog.rs b/extension/src/hyperloglog.rs index 84fbd9957..84d2fd1b5 100644 --- a/extension/src/hyperloglog.rs +++ b/extension/src/hyperloglog.rs @@ -26,6 +26,7 @@ use hyperloglogplusplus::{HyperLogLog as HLL, HyperLogLogStorage}; #[derive(Debug, Copy, Clone, PartialEq)] struct HashableDatum(Datum); impl Eq for HashableDatum {} +#[allow(clippy::derive_hash_xor_eq)] // partialeq and hash implementations match impl Hash for HashableDatum { fn hash(&self, state: &mut H) { self.0.value().hash(state) diff --git a/extension/src/lib.rs b/extension/src/lib.rs index b7b9678aa..c2ee177a4 100644 --- a/extension/src/lib.rs +++ b/extension/src/lib.rs @@ -4,6 +4,10 @@ #![allow(clippy::extra_unused_lifetimes)] // every function calling in_aggregate_context should be unsafe #![allow(clippy::not_unsafe_ptr_arg_deref)] +// since 0.5 pgx requires non-elided lifetimes on extern functions: https://github.com/tcdi/pgx/issues/721 +#![allow(clippy::needless_lifetimes)] +// triggered by pg_extern macros +#![allow(clippy::useless_conversion)] pub mod accessors; pub mod asap;