Skip to content

Commit

Permalink
Fixes for clippy 1.71
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Jul 13, 2023
1 parent e0cc8c8 commit 1df57e9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
9 changes: 9 additions & 0 deletions datafusion/physical-expr/src/aggregate/hyperloglog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ const SEED: RandomState = RandomState::with_seeds(
0x0eaea5d736d733a4_u64,
);

impl<T> Default for HyperLogLog<T>
where
T: Hash + ?Sized,
{
fn default() -> Self {
Self::new()
}
}

impl<T> HyperLogLog<T>
where
T: Hash + ?Sized,
Expand Down
14 changes: 7 additions & 7 deletions datafusion/sql/tests/sql_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ use datafusion_sql::{

use rstest::rstest;

#[cfg(test)]
#[ctor::ctor]
fn init() {
// Enable RUST_LOG logging configuration for tests
let _ = env_logger::try_init();
}

#[test]
fn parse_decimals() {
let test_data = [
Expand Down Expand Up @@ -4161,3 +4154,10 @@ impl TableSource for EmptyTable {
self.table_schema.clone()
}
}

#[cfg(test)]
#[ctor::ctor]
fn init() {
// Enable RUST_LOG logging configuration for tests
let _ = env_logger::try_init();
}

0 comments on commit 1df57e9

Please sign in to comment.