File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
crates/iceberg/src/puffin Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -69,11 +69,11 @@ impl Flag {
69
69
( self as u8 ) % 8
70
70
}
71
71
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
74
74
}
75
75
76
- fn from ( byte_idx : & u8 , bit_idx : & u8 ) -> Result < Flag > {
76
+ fn from ( byte_idx : u8 , bit_idx : u8 ) -> Result < Flag > {
77
77
if Flag :: FooterPayloadCompressed . matches ( byte_idx, bit_idx) {
78
78
Ok ( Flag :: FooterPayloadCompressed )
79
79
} else {
@@ -182,7 +182,7 @@ impl FileMetadata {
182
182
183
183
for bit_idx in 0 ..8 {
184
184
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) ?;
186
186
flags. insert ( flag) ;
187
187
}
188
188
}
You can’t perform that action at this time.
0 commit comments