From 8fd2c6703b8ff44d8880ed8c9c2f4dd5fec20da9 Mon Sep 17 00:00:00 2001 From: marvin-j97 Date: Thu, 18 Jan 2024 15:20:25 +0100 Subject: [PATCH] clippy fix --- src/bit_array.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bit_array.rs b/src/bit_array.rs index c89de1c..5978b0d 100644 --- a/src/bit_array.rs +++ b/src/bit_array.rs @@ -50,6 +50,7 @@ impl BitArray { } /// Gets the i-th byte + #[must_use] pub fn get(&self, idx: usize) -> bool { let byte_idx = idx / 8; let byte = self.0.get(byte_idx).expect("should be in bounds");