Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

container: Move more metadata into ExportOpts #534

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

cgwalters
Copy link
Member

@cgwalters cgwalters commented Sep 10, 2023

container: Move more metadata into ExportOpts

This drops two extra arguments we added over time; in
a few places before we had e.g. None, None, None being passed
which just looks awkward. And we also threaded through all 3
in various places.

The ExportOpts just needs to grow a lifetime argument, but that
turned out to not be too bad when I realized we could use the
elided lifetime <'_> in all methods that use it.


container: Make ExportOpts #[non_exhaustive]

It's intended for this purpose, where we want to be able
to add elements to the struct over time without breaking semver.


@cgwalters cgwalters added the semver-break A change that requires a semver bump label Sep 10, 2023
Copy link
Member

@jmarrero jmarrero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

This drops two extra arguments we added over time; in
a few places before we had e.g. `None, None, None` being passed
which just looks awkward.  And we also threaded through all 3
in various places.

The `ExportOpts` just needs to grow a lifetime argument, but that
turned out to not be too bad when I realized we could use the
elided lifetime `<'_>` in all methods that use it.
@cgwalters cgwalters force-pushed the container-export-opts branch from 2782f55 to f1713aa Compare September 11, 2023 21:13
@cgwalters cgwalters enabled auto-merge September 11, 2023 21:13
@cgwalters cgwalters merged commit 454dd88 into ostreedev:main Sep 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
semver-break A change that requires a semver bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants