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,7 +1,7 @@
use std::{borrow::Cow, collections::BTreeMap};
use maplit::hashmap;
use rbx_dom_weak::{RbxId, RbxTree, RbxValue};
use rbx_dom_weak::RbxValue;
use serde::Serialize;
use crate::{
@@ -11,7 +11,7 @@ use crate::{
use super::{
meta_file::AdjacentMetadata,
middleware::{SnapshotFileResult, SnapshotInstanceResult, SnapshotMiddleware},
middleware::{SnapshotInstanceResult, SnapshotMiddleware},
util::match_file_name,
};
@@ -62,10 +62,6 @@ impl SnapshotMiddleware for SnapshotCsv {
Ok(Some(snapshot))
}
fn from_instance(_tree: &RbxTree, _id: RbxId) -> SnapshotFileResult {
unimplemented!("Snapshotting CSV localization tables");
}
}
/// Struct that holds any valid row from a Roblox CSV translation table.