Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Feb 17, 2023
1 parent 363035d commit 943bc7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/noirc_abi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ impl Abi {
// This is to be used when encoding public values to be passed to the verifier.
match (&self.return_type, return_value) {
(Some(return_type), Some(return_value)) => {
if !return_value.matches_abi(&return_type) {
if !return_value.matches_abi(return_type) {
panic!("Unexpected return value")
}
let encoded_return_fields =
Expand Down Expand Up @@ -317,7 +317,7 @@ impl Abi {
.copied()
})
{
Some(Self::decode_value(&mut return_witness_values.into_iter(), &return_type)?)
Some(Self::decode_value(&mut return_witness_values.into_iter(), return_type)?)
} else {
// Unlike for the circuit inputs, we tolerate not being able to find the witness values for the return value.
// This is because the user may be decoding a partial witness map for which is hasn't been calculated yet.
Expand Down

0 comments on commit 943bc7c

Please sign in to comment.