mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 12:01:38 +00:00
Remove lifetime from SnapshotInstanceResult
This commit is contained in:
parent
d2e2a13479
commit
02f98a4053
12 changed files with 16 additions and 19 deletions
|
|
@ -7,7 +7,7 @@ use crate::{
|
|||
|
||||
use super::{context::InstanceSnapshotContext, error::SnapshotError};
|
||||
|
||||
pub type SnapshotInstanceResult<'a> = Result<Option<InstanceSnapshot>, SnapshotError>;
|
||||
pub type SnapshotInstanceResult = Result<Option<InstanceSnapshot>, SnapshotError>;
|
||||
pub type SnapshotFileResult = Option<(String, VfsSnapshot)>;
|
||||
|
||||
pub trait SnapshotMiddleware {
|
||||
|
|
@ -15,7 +15,7 @@ pub trait SnapshotMiddleware {
|
|||
context: &mut InstanceSnapshotContext,
|
||||
vfs: &Vfs<F>,
|
||||
entry: &VfsEntry,
|
||||
) -> SnapshotInstanceResult<'static>;
|
||||
) -> SnapshotInstanceResult;
|
||||
|
||||
fn from_instance(_tree: &RbxTree, _id: RbxId) -> SnapshotFileResult {
|
||||
None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue