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

@@ -1,14 +1,12 @@
use std::borrow::Cow;
use rbx_dom_weak::{RbxId, RbxTree};
use crate::{
imfs::{Imfs, ImfsEntry, ImfsFetcher},
snapshot::InstanceSnapshot,
};
use super::{
middleware::{SnapshotFileResult, SnapshotInstanceResult, SnapshotMiddleware},
middleware::{SnapshotInstanceResult, SnapshotMiddleware},
util::match_file_name,
};
@@ -48,10 +46,6 @@ impl SnapshotMiddleware for SnapshotRbxmx {
panic!("Rojo doesn't have support for model files with zero or more than one top-level instances yet.");
}
}
fn from_instance(_tree: &RbxTree, _id: RbxId) -> SnapshotFileResult {
unimplemented!("Snapshotting models");
}
}
#[cfg(test)]