Make InstanceSnapshotContext mutable through whole middleware pipeline

This commit is contained in:
Lucien Greathouse
2019-10-10 14:07:10 -07:00
parent f0cd4333c3
commit f3dc78b7cd
11 changed files with 42 additions and 39 deletions

View File

@@ -14,7 +14,7 @@ pub type SnapshotFileResult = Option<(String, ImfsSnapshot)>;
pub trait SnapshotMiddleware {
fn from_imfs<F: ImfsFetcher>(
context: &InstanceSnapshotContext,
context: &mut InstanceSnapshotContext,
imfs: &mut Imfs<F>,
entry: &ImfsEntry,
) -> SnapshotInstanceResult<'static>;