Skip to content

Commit b698096

Browse files
authored
Fix lambda typing
Signed-off-by: Jiahao XU <[email protected]>
1 parent bc2f88f commit b698096

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ impl Parser {
6767
pub(super) fn input(&mut self, input: &mut PartialBuffer<&[u8]>) -> io::Result<Option<Header>> {
6868
let crc = &mut self.crc;
6969

70-
let mut consume_input = |n, input| {
70+
let mut consume_input = |n, input: &mut PartialBuffer<&[u8]>| {
7171
crc.update(&input.unwritten()[..n]);
7272
input.advance(n);
7373
};
@@ -136,7 +136,7 @@ impl Parser {
136136
if consume_cstr(&mut input).is_none() {
137137
break Ok(None);
138138
}
139-
139+
140140
self.state = State::Comment;
141141
}
142142

@@ -149,7 +149,7 @@ impl Parser {
149149
if consume_cstr(&mut input).is_none() {
150150
break Ok(None);
151151
}
152-
152+
153153
self.state = State::Crc(<_>::default());
154154
}
155155

0 commit comments

Comments
 (0)