Skip to content

Commit c6a5195

Browse files
oci: make pull() return the correct ObjectID
This returns the same type of FsVerityHashValue as is used by the Repository that it's passed. Update the signature to reflect that. Fixes #129 Signed-off-by: Allison Karlitskaya <[email protected]>
1 parent b58c844 commit c6a5195

File tree

1 file changed

+3
-3
lines changed
  • crates/composefs-oci/src

1 file changed

+3
-3
lines changed

crates/composefs-oci/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,11 @@ impl<ObjectID: FsVerityHashValue> ImageOp<ObjectID> {
235235

236236
/// Pull the target image, and add the provided tag. If this is a mountable
237237
/// image (i.e. not an artifact), it is *not* unpacked by default.
238-
pub async fn pull(
239-
repo: &Arc<Repository<impl FsVerityHashValue>>,
238+
pub async fn pull<ObjectID: FsVerityHashValue>(
239+
repo: &Arc<Repository<ObjectID>>,
240240
imgref: &str,
241241
reference: Option<&str>,
242-
) -> Result<(Sha256Digest, impl FsVerityHashValue)> {
242+
) -> Result<(Sha256Digest, ObjectID)> {
243243
let op = Arc::new(ImageOp::new(repo, imgref).await?);
244244
let (sha256, id) = op
245245
.pull()

0 commit comments

Comments
 (0)