Skip to content

Commit 342071e

Browse files
committed
Remove unnecessary reference
1 parent 2323773 commit 342071e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/iceberg/src/puffin/metadata.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ impl Flag {
6969
(self as u8) % 8
7070
}
7171

72-
fn matches(self, byte_idx: &u8, bit_idx: &u8) -> bool {
73-
&self.byte_idx() == byte_idx && &self.bit_idx() == bit_idx
72+
fn matches(self, byte_idx: u8, bit_idx: u8) -> bool {
73+
self.byte_idx() == byte_idx && self.bit_idx() == bit_idx
7474
}
7575

76-
fn from(byte_idx: &u8, bit_idx: &u8) -> Result<Flag> {
76+
fn from(byte_idx: u8, bit_idx: u8) -> Result<Flag> {
7777
if Flag::FooterPayloadCompressed.matches(byte_idx, bit_idx) {
7878
Ok(Flag::FooterPayloadCompressed)
7979
} else {
@@ -182,7 +182,7 @@ impl FileMetadata {
182182

183183
for bit_idx in 0..8 {
184184
if ((flag_byte >> bit_idx) & 1) != 0 {
185-
let flag = Flag::from(&byte_idx, &bit_idx)?;
185+
let flag = Flag::from(byte_idx, bit_idx)?;
186186
flags.insert(flag);
187187
}
188188
}

0 commit comments

Comments
 (0)