Make all file contents be Arc<Vec<u8>> instead of &[u8]

This commit is contained in:
Lucien Greathouse
2019-10-12 14:17:52 -07:00
parent 1031600c63
commit 1967f738a8
9 changed files with 27 additions and 25 deletions

View File

@@ -43,7 +43,7 @@ impl SnapshotMiddleware for SnapshotProject {
return Ok(None);
}
let project = Project::load_from_slice(entry.contents(vfs)?, entry.path())
let project = Project::load_from_slice(&entry.contents(vfs)?, entry.path())
.map_err(|err| SnapshotError::malformed_project(err, entry.path()))?;
// Snapshotting a project should always return an instance, so this