Skip to content

Commit

Permalink
chore: Fix a few warnings (#2396)
Browse files Browse the repository at this point in the history
## What ❔

Fixes a few warnings, mostly in the prover workspace.

## Why ❔

Developing with warnings in the tree increases the warning blindness.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [ ] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk fmt` and `zk lint`.
  • Loading branch information
popzxc authored Jul 10, 2024
1 parent a7bcf5d commit 1ecab0d
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion infrastructure/zk/src/lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function clippy() {

async function proverClippy() {
process.chdir(`${process.env.ZKSYNC_HOME}/prover`);
await utils.spawn('cargo clippy --tests --locked -- -D warnings -A incomplete_features');
await utils.spawn('cargo clippy --tests --locked -- -D warnings');
}

async function toolboxClippy() {
Expand Down
1 change: 1 addition & 0 deletions prover/proof_fri_compressor/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(incomplete_features)] // We have to use generic const exprs.
#![feature(generic_const_exprs)]

use std::{env, time::Duration};
Expand Down
1 change: 1 addition & 0 deletions prover/prover_fri/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(incomplete_features)] // We have to use generic const exprs.
#![feature(generic_const_exprs)]
mod metrics;
pub mod prover_job_processor;
Expand Down
1 change: 1 addition & 0 deletions prover/prover_fri/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(incomplete_features)] // We have to use generic const exprs.
#![feature(generic_const_exprs)]

use std::{future::Future, sync::Arc, time::Duration};
Expand Down
1 change: 1 addition & 0 deletions prover/witness_generator/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(incomplete_features)] // We have to use generic const exprs.
#![feature(generic_const_exprs)]

pub mod basic_circuits;
Expand Down
1 change: 1 addition & 0 deletions prover/witness_generator/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(incomplete_features)] // We have to use generic const exprs.
#![feature(generic_const_exprs)]

use std::time::{Duration, Instant};
Expand Down
1 change: 1 addition & 0 deletions prover/witness_vector_generator/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(incomplete_features)] // We have to use generic const exprs.
#![feature(generic_const_exprs)]

pub mod generator;
Expand Down
1 change: 1 addition & 0 deletions prover/witness_vector_generator/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(incomplete_features)] // We have to use generic const exprs.
#![feature(generic_const_exprs)]

use std::time::Duration;
Expand Down

0 comments on commit 1ecab0d

Please sign in to comment.