fix(tvix-glue/fetchers/decompression): propagate error with ?
Change-Id: I5e9d4f067f09307cb6f990ed6eca48345e2fb342 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11810 Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Reviewed-by: Brian Olsen <me@griff.name>
This commit is contained in:
parent
b992ca49a6
commit
9d44da01ee
1 changed files with 1 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue