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 02b9b74
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 @@ -23,6 +23,7 @@ use crate::{
use hyperloglogplusplus::{HyperLogLog as HLL, HyperLogLogStorage};

// pgx doesn't implement Eq/Hash but it's okay here since we treat Datums as raw bytes
#[allow(clippy::derive_hash_xor_eq)] // partialeq and hash implementations match
#[derive(Debug, Copy, Clone, PartialEq)]
struct HashableDatum(Datum);
impl Eq for HashableDatum {}
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 02b9b74

Please sign in to comment.