Skip to content

Commit

Permalink
fix(tvix-glue/fetchers/decompression): propagate error with ?
Browse files Browse the repository at this point in the history
Change-Id: I5e9d4f067f09307cb6f990ed6eca48345e2fb342
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11810
Autosubmit: flokli <[email protected]>
Tested-by: BuildkiteCI
Reviewed-by: Brian Olsen <[email protected]>
  • Loading branch information
flokli authored and clbot committed Jun 13, 2024
1 parent fe60231 commit 70ee5d2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions glue/src/fetchers/decompression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,7 @@ where
};

let mut our_buf = ReadBuf::new(buffer);
if let Err(e) = ready!(inner.as_pin_mut().unwrap().poll_read(cx, &mut our_buf)) {
return Poll::Ready(Err(e));
}
ready!(inner.as_pin_mut().unwrap().poll_read(cx, &mut our_buf))?;

let data = our_buf.filled();
if data.len() >= BYTES_NEEDED {
Expand Down

0 comments on commit 70ee5d2

Please sign in to comment.