Skip to content

Commit

Permalink
image-rs: fix lint error
Browse files Browse the repository at this point in the history
Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
  • Loading branch information
Xynnn007 committed Nov 3, 2023
1 parent 8dd91e0 commit eceb67b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image-rs/src/pull.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl<'a> PullClient<'a> {
let layer_metas = self
.async_pull_layers(vec![bootstrap_desc], &[diff_id], decrypt_config, meta_store)
.await?;
match layer_metas.get(0) {
match layer_metas.first() {
Some(b) => Ok(b.clone()),
None => Err(anyhow!("Failed to download this bootstrap layer")),
}
Expand Down

0 comments on commit eceb67b

Please sign in to comment.