Get rid of confusing 'SnapshotInstanceResult' type alias

This commit is contained in:
Lucien Greathouse
2021-08-24 17:15:47 -04:00
parent 9f06cbf3a0
commit d484098781
11 changed files with 27 additions and 33 deletions

View File

@@ -7,14 +7,14 @@ use serde::Serialize;
use crate::snapshot::{InstanceContext, InstanceMetadata, InstanceSnapshot};
use super::{meta_file::AdjacentMetadata, middleware::SnapshotInstanceResult};
use super::meta_file::AdjacentMetadata;
pub fn snapshot_csv(
_context: &InstanceContext,
vfs: &Vfs,
path: &Path,
instance_name: &str,
) -> SnapshotInstanceResult {
) -> anyhow::Result<Option<InstanceSnapshot>> {
let meta_path = path.with_file_name(format!("{}.meta.json", instance_name));
let contents = vfs.read(path)?;