formatting

This commit is contained in:
Collin Chin 2021-03-12 21:02:38 -08:00
parent 712d2fbd02
commit 45316e90d9
3 changed files with 5 additions and 9 deletions

View File

@ -19,10 +19,7 @@
use crate::{ use crate::{
constraints::{generate_constraints, generate_test_constraints}, constraints::{generate_constraints, generate_test_constraints},
errors::CompilerError, errors::CompilerError,
CompilerOptions, CompilerOptions, GroupType, OutputBytes, OutputFile,
GroupType,
OutputBytes,
OutputFile,
}; };
use indexmap::IndexMap; use indexmap::IndexMap;
pub use leo_asg::{new_context, AsgContext as Context, AsgContext}; 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() { None => match self.main_file_path.clone().into_os_string().into_string() {
Err(e) => return CompilerError::FileStringError(e), Err(e) => return CompilerError::FileStringError(e),
Ok(path) => path, Ok(path) => path,
} },
}; };
// Resolve the code text using the file path. // Resolve the code text using the file path.

View File

@ -23,8 +23,7 @@ use leo_parser::SyntaxError;
use leo_state::LocalDataVerificationError; use leo_state::LocalDataVerificationError;
use bincode::Error as SerdeError; use bincode::Error as SerdeError;
use std::path::PathBuf; use std::{ffi::OsString, path::PathBuf};
use std::ffi::OsString;
#[derive(Debug, Error)] #[derive(Debug, Error)]
pub enum CompilerError { pub enum CompilerError {

View File

@ -79,5 +79,5 @@ fn test_iteration_input() {
let program_string = include_str!("iteration_input.leo"); let program_string = include_str!("iteration_input.leo");
let error = parse_program_with_input(program_string, input_string).err().unwrap(); let error = parse_program_with_input(program_string, input_string).err().unwrap();
expect_asg_error(error) expect_asg_error(error);
} }