mirror of
https://github.com/AleoHQ/leo.git
synced 2024-11-14 04:38:05 +03:00
style
This commit is contained in:
parent
9939a565b5
commit
44ae9e6337
@ -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";
|
||||
|
@ -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(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user