Skip to content

Add HubrisArchive::load_from_path#674

Merged
labbott merged 3 commits into
masterfrom
labbott/load_from_path
May 28, 2026
Merged

Add HubrisArchive::load_from_path#674
labbott merged 3 commits into
masterfrom
labbott/load_from_path

Conversation

@labbott
Copy link
Copy Markdown
Contributor

@labbott labbott commented May 21, 2026

For library functions this is a nice shortcut if we don't need to directly manipulate the RawHubrisArchive

inlined
}

pub fn load_from_path<P: AsRef<Path> + std::fmt::Debug + Copy>(
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.

The parameter was borrowed from hubtools, certainly open to suggestions

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.

I'm the person who wrote them in hubtools, but cannot fathom why I added Copy as a bound here. I opened oxidecomputer/hubtools#66

For library functions this is a nice shortcut if we don't
need to directly manipulate the `RawHubrisArchive`
@labbott labbott force-pushed the labbott/load_from_path branch from 7a31cde to 0d41ea7 Compare May 21, 2026 17:55
@labbott labbott requested review from hawkw and mkeeter May 21, 2026 17:55
@labbott labbott enabled auto-merge (rebase) May 28, 2026 13:53
@labbott labbott merged commit 4c8e954 into master May 28, 2026
12 checks passed
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