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:
Florian Klink 2024-06-12 18:20:13 +03:00 committed by clbot
parent b992ca49a6
commit 9d44da01ee

View file

@ -153,9 +153,7 @@ where
}; };
let mut our_buf = ReadBuf::new(buffer); let mut our_buf = ReadBuf::new(buffer);
if let Err(e) = ready!(inner.as_pin_mut().unwrap().poll_read(cx, &mut our_buf)) { ready!(inner.as_pin_mut().unwrap().poll_read(cx, &mut our_buf))?;
return Poll::Ready(Err(e));
}
let data = our_buf.filled(); let data = our_buf.filled();
if data.len() >= BYTES_NEEDED { if data.len() >= BYTES_NEEDED {