Skip to content

Commit

Permalink
chore(ci): fail on clippy warnings in noir (#5101)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Mar 11, 2024
1 parent 1519d3b commit 54af648
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions noir/noir-repo/tooling/acvm_cli/src/cli/execute_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,17 @@ pub(crate) fn run(args: ExecuteCommand) -> Result<String, CliError> {

pub(crate) fn execute_program_from_witness(
inputs_map: &WitnessMap,
bytecode: &Vec<u8>,
bytecode: &[u8],
foreign_call_resolver_url: Option<&str>,
) -> Result<WitnessMap, CliError> {
let blackbox_solver = Bn254BlackBoxSolver::new();
let circuit: Circuit = Circuit::deserialize_circuit(&bytecode)
let circuit: Circuit = Circuit::deserialize_circuit(bytecode)
.map_err(|_| CliError::CircuitDeserializationError())?;
let result = execute_circuit(
execute_circuit(
&circuit,
inputs_map.clone(),
&blackbox_solver,
&mut DefaultForeignCallExecutor::new(true, foreign_call_resolver_url),
)
.map_err(|e| CliError::CircuitExecutionError(e));
result
.map_err(CliError::CircuitExecutionError)
}
2 changes: 1 addition & 1 deletion noir/scripts/test_native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export GIT_DIRTY=false
export GIT_COMMIT=${COMMIT_HASH:-$(git rev-parse --verify HEAD)}

cargo fmt --all --check
cargo clippy --workspace --locked --release
RUSTFLAGS=-Dwarnings cargo clippy --workspace --locked --release

./.github/scripts/cargo-binstall-install.sh
cargo-binstall cargo-nextest --version 0.9.67 -y --secure
Expand Down

0 comments on commit 54af648

Please sign in to comment.