Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions humility-core/src/hubris.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1336,6 +1336,13 @@ impl HubrisArchive {
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

path: P,
) -> Result<Self> {
let hubris = RawHubrisArchive::load(path)?;
Self::load(hubris, None)
}

pub fn load(
hubris: RawHubrisArchive,
task_dump: Option<DumpTask>,
Expand Down
Loading