Skip to content

Commit

Permalink
chore: clippy fix (#2136)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Aug 3, 2023
1 parent 35404ba commit 602168c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions crates/noirc_evaluator/src/ssa/acir_gen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -736,13 +736,11 @@ impl Context {
) -> Result<AcirVar, InternalError> {
match self.convert_value(value_id, dfg) {
AcirValue::Var(acir_var, _) => Ok(acir_var),
AcirValue::Array(array) => {
return Err(InternalError::UnExpected {
expected: "a numeric value".to_string(),
found: format!("{array:?}"),
location: self.acir_context.get_location(),
})
}
AcirValue::Array(array) => Err(InternalError::UnExpected {
expected: "a numeric value".to_string(),
found: format!("{array:?}"),
location: self.acir_context.get_location(),
}),
AcirValue::DynamicArray(_) => Err(InternalError::UnExpected {
expected: "a numeric value".to_string(),
found: "an array".to_string(),
Expand Down

0 comments on commit 602168c

Please sign in to comment.