Skip to content

Commit 3f26e25

Browse files
committed
The latest and greatest lints
1 parent e26032f commit 3f26e25

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

crates/commitlog/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ impl Default for Options {
9999
impl Options {
100100
pub const DEFAULT_MAX_SEGMENT_SIZE: u64 = 1024 * 1024 * 1024;
101101
pub const DEFAULT_MAX_RECORDS_IN_COMMIT: NonZeroU16 = NonZeroU16::MAX;
102-
pub const DEFAULT_OFFSET_INDEX_INTERVAL_BYTES: NonZeroU64 =
103-
// SAFETY: 4096 > 0, qed
104-
unsafe { NonZeroU64::new_unchecked(4096) };
102+
pub const DEFAULT_OFFSET_INDEX_INTERVAL_BYTES: NonZeroU64 = NonZeroU64::new(4096).expect("4096 > 0, qed");
105103
pub const DEFAULT_OFFSET_INDEX_REQUIRE_SEGMENT_FSYNC: bool = false;
106104

107105
pub const DEFAULT: Self = Self {

0 commit comments

Comments
 (0)