Switch SnapshotMiddleware over to SnapshotError

This commit is contained in:
Lucien Greathouse
2019-10-09 12:42:08 -07:00
parent a14aacbcf9
commit 28156bcaf2
4 changed files with 8 additions and 4 deletions

View File

@@ -3,11 +3,13 @@ use std::path::{Path, PathBuf};
use rbx_dom_weak::{RbxId, RbxTree};
use crate::{
imfs::{FsResult, Imfs, ImfsEntry, ImfsFetcher, ImfsSnapshot},
imfs::{Imfs, ImfsEntry, ImfsFetcher, ImfsSnapshot},
snapshot::InstanceSnapshot,
};
pub type SnapshotInstanceResult<'a> = FsResult<Option<InstanceSnapshot<'a>>>;
use super::error::SnapshotError;
pub type SnapshotInstanceResult<'a> = Result<Option<InstanceSnapshot<'a>>, SnapshotError>;
pub type SnapshotFileResult = Option<(String, ImfsSnapshot)>;
pub trait SnapshotMiddleware {