Copy the images into the output.

This commit is contained in:
Tom Alexander
2025-02-08 19:46:46 -05:00
parent bf7f37260c
commit 59ee13345e
3 changed files with 68 additions and 13 deletions

View File

@@ -58,4 +58,11 @@ impl DependencyManager {
});
Ok(())
}
/// Return the dependencies and forget about them.
pub(crate) fn take_dependencies(&mut self) -> Vec<Dependency> {
let mut dependencies = Vec::new();
std::mem::swap(&mut self.dependencies, &mut dependencies);
dependencies
}
}