Skip to content

ContainerRegistry: Prefer generic parameters to existentials#150

Merged
euanh merged 1 commit intoapple:mainfrom
euanh:generic-digest
Jul 10, 2025
Merged

ContainerRegistry: Prefer generic parameters to existentials#150
euanh merged 1 commit intoapple:mainfrom
euanh:generic-digest

Conversation

@euanh
Copy link
Copy Markdown
Collaborator

@euanh euanh commented Jul 10, 2025

Motivation

A generic parameter is preferable to an any parameter, where possible.

Modifications

  • Make blob parameter generic instead of existential in ImageReference.Digest(of: Blob)

Result

No functional change.

Test Plan

All existing tests continue to pass.

@euanh euanh added the semver/none No version bump required. label Jul 10, 2025
@euanh euanh changed the title ContainerRegistry: Use generic instead of existential in ImageReference.Digest(of: Blob) ContainerRegistry: Prefer generic parameters to existentials Jul 10, 2025
@euanh euanh marked this pull request as ready for review July 10, 2025 11:11
@euanh euanh merged commit 61d2f73 into apple:main Jul 10, 2025
23 checks passed
@euanh euanh deleted the generic-digest branch July 10, 2025 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant