Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
syvb committed Sep 29, 2022
1 parent 11ac453 commit b6b78af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions extension/src/hyperloglog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<H: Hasher>(&self, state: &mut H) {
self.0.value().hash(state)
Expand Down
4 changes: 4 additions & 0 deletions extension/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b6b78af

Please sign in to comment.