Skip to content

Commit bc2f88f

Browse files
authored
Specify input type for consume_cstr closure
Signed-off-by: Jiahao XU <[email protected]>
1 parent 8eafe97 commit bc2f88f

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
@@ -72,7 +72,7 @@ impl Parser {
7272
input.advance(n);
7373
};
7474

75-
let mut consume_cstr = |input| {
75+
let mut consume_cstr = |input: &mut PartialBuffer<&[u8]>| {
7676
if let Some(len) = memchr::memchr(0, input.unwritten()) {
7777
consume_input(len + 1, input);
7878
Some(())

0 commit comments

Comments
 (0)