Skip to content

Commit

Permalink
chore: use workspace lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
atanmarko committed Aug 26, 2024
1 parent 1b991d9 commit fba1dc2
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 9 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,7 @@ proc-macro2 = "1.0"
quote = "1.0"
syn = "2.0"
trybuild = "1.0"

[workspace.lints.clippy]
too_long_first_doc_paragraph = "allow"

4 changes: 4 additions & 0 deletions evm_arithmetization/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,7 @@ harness = false
# Display math equations properly in documentation
[package.metadata.docs.rs]
rustdoc-args = ["--html-in-header", ".cargo/katex-header.html"]


[lints]
workspace = true
1 change: 0 additions & 1 deletion evm_arithmetization/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@
#![allow(clippy::needless_range_loop)]
#![allow(clippy::too_many_arguments)]
#![allow(clippy::field_reassign_with_default)]
#![allow(clippy::too_long_first_doc_paragraph)]
#![feature(let_chains)]

// Individual STARK processing units
Expand Down
3 changes: 3 additions & 0 deletions mpt_trie/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ doc-scrape-examples = true

[package.metadata.docs.rs]
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]

[lints]
workspace = true
1 change: 0 additions & 1 deletion mpt_trie/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
//! hash of the node it replaces.
#![allow(incomplete_features)]
#![allow(clippy::too_long_first_doc_paragraph)]
#![deny(rustdoc::broken_intra_doc_links)]
#![deny(missing_debug_implementations)]
#![deny(missing_docs)]
Expand Down
3 changes: 3 additions & 0 deletions proof_gen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ hashbrown = { workspace = true }

# Local dependencies
evm_arithmetization = { workspace = true }

[lints]
workspace = true
1 change: 0 additions & 1 deletion proof_gen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@
//! // Have the verifier attest validity of the proof.
//! assert!(verifier_state.verify(block_proof.intern).is_ok());
//! ```
#![allow(clippy::too_long_first_doc_paragraph)]
pub(crate) mod constants;
pub mod proof_gen;
Expand Down
3 changes: 3 additions & 0 deletions smt_trie/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ hex-literal = { workspace = true }
plonky2 = { workspace = true }
rand = { workspace = true }
serde = { workspace = true, features = ["derive", "rc"] }

[lints]
workspace = true
2 changes: 0 additions & 2 deletions smt_trie/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(clippy::too_long_first_doc_paragraph)]

pub mod bits;
pub mod code;
pub mod db;
Expand Down
3 changes: 3 additions & 0 deletions zero_bin/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ once_cell = { workspace = true }
cargo_metadata = { workspace = true }
vergen = { workspace = true }
anyhow = { workspace = true }

[lints]
workspace = true
2 changes: 0 additions & 2 deletions zero_bin/common/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(clippy::too_long_first_doc_paragraph)]

pub mod block_interval;
pub mod debug_utils;
pub mod fs;
Expand Down
3 changes: 3 additions & 0 deletions zero_bin/leader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ default = []
cargo_metadata = { workspace = true }
vergen = { workspace = true }
anyhow = { workspace = true }

[lints]
workspace = true
3 changes: 3 additions & 0 deletions zero_bin/prover/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ clap = {workspace = true}

[features]
default = []

[lints]
workspace = true
2 changes: 0 additions & 2 deletions zero_bin/prover/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(clippy::too_long_first_doc_paragraph)]

pub mod cli;

use std::future::Future;
Expand Down

0 comments on commit fba1dc2

Please sign in to comment.