refactor(tvix/store/nar): clippy

Change-Id: I0d864fd1b9248fe4d5c88e3d8fa396ea759fea09
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8616
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
Florian Klink 2023-05-23 14:09:41 +03:00 committed by flokli
parent 4dd954f8f5
commit 79bbf25cb2

View file

@ -70,7 +70,7 @@ impl<BS: BlobService, DS: DirectoryService> NARRenderer<BS, DS> {
let mut blob_reader = match self let mut blob_reader = match self
.blob_service .blob_service
.open_read(&digest) .open_read(&digest)
.map_err(|e| RenderError::StoreError(e))? .map_err(RenderError::StoreError)?
{ {
Some(blob_reader) => Ok(BufReader::new(blob_reader)), Some(blob_reader) => Ok(BufReader::new(blob_reader)),
None => Err(RenderError::NARWriterError(io::Error::new( None => Err(RenderError::NARWriterError(io::Error::new(