mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-22 09:01:35 +03:00
formatting
This commit is contained in:
parent
712d2fbd02
commit
45316e90d9
@ -19,10 +19,7 @@
|
||||
use crate::{
|
||||
constraints::{generate_constraints, generate_test_constraints},
|
||||
errors::CompilerError,
|
||||
CompilerOptions,
|
||||
GroupType,
|
||||
OutputBytes,
|
||||
OutputFile,
|
||||
CompilerOptions, GroupType, OutputBytes, OutputFile,
|
||||
};
|
||||
use indexmap::IndexMap;
|
||||
pub use leo_asg::{new_context, AsgContext as Context, AsgContext};
|
||||
@ -235,7 +232,7 @@ impl<'a, F: PrimeField, G: GroupType<F>> Compiler<'a, F, G> {
|
||||
None => match self.main_file_path.clone().into_os_string().into_string() {
|
||||
Err(e) => return CompilerError::FileStringError(e),
|
||||
Ok(path) => path,
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
// Resolve the code text using the file path.
|
||||
|
@ -23,8 +23,7 @@ use leo_parser::SyntaxError;
|
||||
use leo_state::LocalDataVerificationError;
|
||||
|
||||
use bincode::Error as SerdeError;
|
||||
use std::path::PathBuf;
|
||||
use std::ffi::OsString;
|
||||
use std::{ffi::OsString, path::PathBuf};
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
pub enum CompilerError {
|
||||
|
@ -79,5 +79,5 @@ fn test_iteration_input() {
|
||||
let program_string = include_str!("iteration_input.leo");
|
||||
let error = parse_program_with_input(program_string, input_string).err().unwrap();
|
||||
|
||||
expect_asg_error(error)
|
||||
expect_asg_error(error);
|
||||
}
|
Loading…
Reference in New Issue
Block a user