diff --git a/compiler/src/compiler.rs b/compiler/src/compiler.rs index 75170cf19c..cb6d8aa123 100644 --- a/compiler/src/compiler.rs +++ b/compiler/src/compiler.rs @@ -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> 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. diff --git a/compiler/src/errors/compiler.rs b/compiler/src/errors/compiler.rs index fce9cfef2d..a9d13e6b24 100644 --- a/compiler/src/errors/compiler.rs +++ b/compiler/src/errors/compiler.rs @@ -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 { diff --git a/compiler/tests/statements/mod.rs b/compiler/tests/statements/mod.rs index f0a300ebc6..aba9f62a5c 100644 --- a/compiler/tests/statements/mod.rs +++ b/compiler/tests/statements/mod.rs @@ -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) -} \ No newline at end of file + expect_asg_error(error); +}