Skip to content

Make manifest fields non-optional#658

Open
mkeeter wants to merge 5 commits intohubtools-and-loadingfrom
mkeeter/remove-options
Open

Make manifest fields non-optional#658
mkeeter wants to merge 5 commits intohubtools-and-loadingfrom
mkeeter/remove-options

Conversation

@mkeeter
Copy link
Copy Markdown
Contributor

@mkeeter mkeeter commented May 6, 2026

(staged on top of #657)

Now that #657 makes it impossible to construct a partially-initialized HubrisArchive, there are many fields which are guaranteed to be Some(..). This PR makes them non-optional, then fixes downstream users.

@mkeeter mkeeter requested a review from labbott May 6, 2026 18:30
@mkeeter mkeeter changed the title Mkeeter/remove options Make manifest fields non-optional May 6, 2026
@mkeeter mkeeter force-pushed the mkeeter/remove-options branch from 2fc50b9 to cc5c8ea Compare May 7, 2026 13:58
@mkeeter mkeeter force-pushed the hubtools-and-loading branch from fe3feff to 42740e1 Compare May 7, 2026 13:58
@mkeeter mkeeter force-pushed the mkeeter/remove-options branch from cc5c8ea to 78506ec Compare May 7, 2026 14:07
@mkeeter mkeeter force-pushed the hubtools-and-loading branch 2 times, most recently from a80da4f to f8548f9 Compare May 7, 2026 15:41
@mkeeter mkeeter force-pushed the mkeeter/remove-options branch from 78506ec to 7248bff Compare May 7, 2026 15:41
@mkeeter mkeeter force-pushed the mkeeter/remove-options branch from 7248bff to d9a75e8 Compare May 7, 2026 15:46
@mkeeter mkeeter force-pushed the hubtools-and-loading branch from f8548f9 to d1f50d6 Compare May 7, 2026 15:46
Comment thread humility-net-core/src/lib.rs Outdated
.ok_or_else(|| anyhow!("missing image ID"))?
.1
.clone(),
imageid: hubris.imageid.1.clone(),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can this use hubris.image_id() to avoid direct field access? (Same comment a few places)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good call, I've made the field non-pub so that everyone has to call image_id().

@mkeeter mkeeter force-pushed the mkeeter/remove-options branch from d9a75e8 to df309fa Compare May 7, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants