fix warnings
This commit is contained in:
parent
5a208beea7
commit
389d7d0a04
2 changed files with 2 additions and 4 deletions
|
@ -189,8 +189,7 @@ pub fn compile<T: Field, E: Into<imports::Error>>(
|
|||
) -> Result<CompilationArtifacts<T>, CompileErrors> {
|
||||
let arena = Arena::new();
|
||||
|
||||
let (typed_ast, abi) =
|
||||
check_with_arena(source, location.to_path_buf(), resolver, config, &arena)?;
|
||||
let (typed_ast, abi) = check_with_arena(source, location.clone(), resolver, config, &arena)?;
|
||||
|
||||
// flatten input program
|
||||
log::debug!("Flatten");
|
||||
|
|
|
@ -24,7 +24,6 @@ use self::uint_optimizer::UintOptimizer;
|
|||
use self::unconstrained_vars::UnconstrainedVariableDetector;
|
||||
use self::variable_write_remover::VariableWriteRemover;
|
||||
use crate::compile::CompileConfig;
|
||||
use crate::flat_absy::FlatProg;
|
||||
use crate::ir::Prog;
|
||||
use crate::static_analysis::constant_inliner::ConstantInliner;
|
||||
use crate::typed_absy::{abi::Abi, TypedProgram};
|
||||
|
@ -143,6 +142,6 @@ impl<T: Field> Analyse for Prog<T> {
|
|||
|
||||
fn analyse(self) -> Result<Self, Self::Error> {
|
||||
log::debug!("Static analyser: Detect unconstrained zir");
|
||||
UnconstrainedVariableDetector::detect(self).map_err(|e| e.into())
|
||||
UnconstrainedVariableDetector::detect(self).map_err(Error::from)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue