fix(tvix/castore): B3Digest::{to_vec -> as_slice}
Not a single call site actually makes use of the Vec. Change-Id: I6cf31073c9f443d1702a21937a0c3938c2c643b8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9988 Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
parent
9f5b1213f9
commit
a8e7f4eadb
7 changed files with 17 additions and 19 deletions
|
|
@ -199,8 +199,8 @@ async fn populate_directory_with_keep(
|
|||
// upload empty blob
|
||||
let mut bw = blob_service.open_write().await;
|
||||
assert_eq!(
|
||||
fixtures::EMPTY_BLOB_DIGEST.to_vec(),
|
||||
bw.close().await.expect("must succeed closing").to_vec(),
|
||||
fixtures::EMPTY_BLOB_DIGEST.as_slice(),
|
||||
bw.close().await.expect("must succeed closing").as_slice(),
|
||||
);
|
||||
|
||||
// upload directory
|
||||
|
|
@ -282,8 +282,8 @@ async fn populate_directory_complicated(
|
|||
// upload empty blob
|
||||
let mut bw = blob_service.open_write().await;
|
||||
assert_eq!(
|
||||
fixtures::EMPTY_BLOB_DIGEST.to_vec(),
|
||||
bw.close().await.expect("must succeed closing").to_vec(),
|
||||
fixtures::EMPTY_BLOB_DIGEST.as_slice(),
|
||||
bw.close().await.expect("must succeed closing").as_slice(),
|
||||
);
|
||||
|
||||
// upload inner directory
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue