mirror of
https://github.com/AleoHQ/leo.git
synced 2025-01-03 07:16:50 +03:00
formatting
This commit is contained in:
parent
712d2fbd02
commit
45316e90d9
@ -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.
|
||||||
|
@ -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 {
|
||||||
|
@ -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);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user