mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-25 11:12:48 +03:00
fmt
This commit is contained in:
parent
df0d129947
commit
79fb41eac4
@ -17,7 +17,9 @@
|
||||
use crate::{commands::Command, context::Context};
|
||||
use leo_compiler::OutputFile;
|
||||
use leo_errors::Result;
|
||||
use leo_package::outputs::{ChecksumFile, CircuitFile, ProofFile, ProvingKeyFile, Snapshot, SnapshotFile, VerificationKeyFile};
|
||||
use leo_package::outputs::{
|
||||
ChecksumFile, CircuitFile, ProofFile, ProvingKeyFile, Snapshot, SnapshotFile, VerificationKeyFile,
|
||||
};
|
||||
|
||||
use structopt::StructOpt;
|
||||
use tracing::span::Span;
|
||||
|
@ -20,12 +20,7 @@ use crate::outputs::OUTPUTS_DIRECTORY_NAME;
|
||||
use leo_errors::{PackageError, Result};
|
||||
|
||||
use serde::Deserialize;
|
||||
use std::{
|
||||
borrow::Cow,
|
||||
fmt,
|
||||
fs,
|
||||
path::Path,
|
||||
};
|
||||
use std::{borrow::Cow, fmt, fs, path::Path};
|
||||
|
||||
/// Enum to handle all 3 types of snapshots.
|
||||
#[derive(Deserialize)]
|
||||
@ -76,7 +71,8 @@ impl SnapshotFile {
|
||||
pub fn read_from(&self, path: &Path) -> Result<String> {
|
||||
let path = self.snapshot_file_path(path);
|
||||
|
||||
let result = fs::read_to_string(&path).map_err(|_| PackageError::failed_to_read_snapshot_file(path.into_owned()))?;
|
||||
let result =
|
||||
fs::read_to_string(&path).map_err(|_| PackageError::failed_to_read_snapshot_file(path.into_owned()))?;
|
||||
|
||||
Ok(result)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user