Skip to content

Add HubrisArchive::load_from_path#674

Open
labbott wants to merge 2 commits into
masterfrom
labbott/load_from_path
Open

Add HubrisArchive::load_from_path#674
labbott wants to merge 2 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
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