Remove lifetime from SnapshotInstanceResult

This commit is contained in:
Lucien Greathouse
2019-11-19 13:06:31 -08:00
parent d2e2a13479
commit 02f98a4053
12 changed files with 16 additions and 19 deletions

View File

@@ -25,7 +25,7 @@ impl SnapshotMiddleware for SnapshotProject {
context: &mut InstanceSnapshotContext,
vfs: &Vfs<F>,
entry: &VfsEntry,
) -> SnapshotInstanceResult<'static> {
) -> SnapshotInstanceResult {
if entry.is_directory() {
let project_path = entry.path().join("default.project.json");
@@ -81,7 +81,7 @@ pub fn snapshot_project_node<F: VfsFetcher>(
instance_name: &str,
node: &ProjectNode,
vfs: &Vfs<F>,
) -> SnapshotInstanceResult<'static> {
) -> SnapshotInstanceResult {
let name = Cow::Owned(instance_name.to_owned());
let mut class_name = node
.class_name