This commit is contained in:
evan-schott 2024-01-03 12:20:07 -08:00
parent 9939a565b5
commit 44ae9e6337
2 changed files with 2 additions and 3 deletions

View File

@ -231,7 +231,7 @@ mod tests {
mod test_helpers {
use crate::cli::{cli::Commands, run_with_args, Add, New, CLI};
use leo_span::symbol::create_session_if_not_set_then;
use std::path::{Path, PathBuf};
use std::path::Path;
pub(crate) fn sample_nested_package(temp_dir: &Path) {
let name = "nested";

View File

@ -91,8 +91,7 @@ impl Command for Add {
);
let new_manifest_data = serde_json::to_string_pretty(&new_manifest)
.map_err(|err| PackageError::failed_to_serialize_manifest_file(path.to_str().unwrap(), err))?;
std::fs::write(path.join("program.json"), new_manifest_data)
.map_err(PackageError::failed_to_write_manifest)?;
std::fs::write(path.join("program.json"), new_manifest_data).map_err(PackageError::failed_to_write_manifest)?;
Ok(())
}