Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Feb 26, 2024
1 parent 8fccbfa commit 9c9395f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/storage/db/src/implementation/mdbx/tx.rs
Expand Up @@ -68,7 +68,9 @@ impl<K: TransactionKind> Tx<K> {
// NOTE: These constants are needed to initialize `OnceLock` at compile-time, as array
// initialization is not allowed with non-Copy types, and `const { }` blocks are not stable
// yet.
#[allow(clippy::declare_interior_mutable_const)]
const ONCELOCK_DBI_NEW: OnceLock<DBI> = OnceLock::new();
#[allow(clippy::declare_interior_mutable_const)]
const DB_HANDLES: [OnceLock<DBI>; Tables::COUNT] = [ONCELOCK_DBI_NEW; Tables::COUNT];
Self { inner, db_handles: DB_HANDLES, metrics_handler }
}
Expand Down

0 comments on commit 9c9395f

Please sign in to comment.