use crate::configuration::Configuration;
use crate::constants::METADATA_FILENAME;
use crate::metadata::Metadata;
+use serde_json;
pub struct Update;
}
fn write_metadata(&self, metadata: &Metadata, metadata_location: &PathBuf) -> Result<()> {
- let serialized_metadata = metadata.serialize();
+ let serialized_metadata = serde_json::to_string(&metadata)?;
write(metadata_location, serialized_metadata)?;
Ok(())
}