Make SnapshotMiddleware::from_instance have a default impl

This commit is contained in:
Lucien Greathouse
2019-10-10 10:43:55 -07:00
parent e46f9fd94f
commit 6d38a785ed
8 changed files with 14 additions and 53 deletions

View File

@@ -18,7 +18,9 @@ pub trait SnapshotMiddleware {
entry: &ImfsEntry,
) -> SnapshotInstanceResult<'static>;
fn from_instance(tree: &RbxTree, id: RbxId) -> SnapshotFileResult;
fn from_instance(_tree: &RbxTree, _id: RbxId) -> SnapshotFileResult {
None
}
fn change_affects_paths(path: &Path) -> Vec<PathBuf> {
vec![path.to_path_buf()]