Skip to content

Commit 5cd6766

Browse files
authored
Fix equality check
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
1 parent 0aa87b9 commit 5cd6766

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/compression-codecs/src/gzip/header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ impl Parser {
166166
self.state = State::Done;
167167
let checksum = self.crc.sum().to_le_bytes();
168168

169-
if data == &checksum[..2] {
169+
if *data == checksum[..2] {
170170
Ok(Some(header))
171171
} else {
172172
Err(io::Error::new(

0 commit comments

Comments
 (0)