From fba1dc270f044c864536ef2ad88b2db95d70515a Mon Sep 17 00:00:00 2001 From: Marko Atanasievski Date: Mon, 26 Aug 2024 16:25:07 +0200 Subject: [PATCH] chore: use workspace lint rules --- Cargo.toml | 4 ++++ evm_arithmetization/Cargo.toml | 4 ++++ evm_arithmetization/src/lib.rs | 1 - mpt_trie/Cargo.toml | 3 +++ mpt_trie/src/lib.rs | 1 - proof_gen/Cargo.toml | 3 +++ proof_gen/src/lib.rs | 1 - smt_trie/Cargo.toml | 3 +++ smt_trie/src/lib.rs | 2 -- zero_bin/common/Cargo.toml | 3 +++ zero_bin/common/src/lib.rs | 2 -- zero_bin/leader/Cargo.toml | 3 +++ zero_bin/prover/Cargo.toml | 3 +++ zero_bin/prover/src/lib.rs | 2 -- 14 files changed, 26 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 111ec8569..cd48fcca2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" + diff --git a/evm_arithmetization/Cargo.toml b/evm_arithmetization/Cargo.toml index d69f2a140..62133a099 100644 --- a/evm_arithmetization/Cargo.toml +++ b/evm_arithmetization/Cargo.toml @@ -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 diff --git a/evm_arithmetization/src/lib.rs b/evm_arithmetization/src/lib.rs index a8acab4e3..b76953311 100644 --- a/evm_arithmetization/src/lib.rs +++ b/evm_arithmetization/src/lib.rs @@ -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 diff --git a/mpt_trie/Cargo.toml b/mpt_trie/Cargo.toml index 84bd01b4f..d67c75b50 100644 --- a/mpt_trie/Cargo.toml +++ b/mpt_trie/Cargo.toml @@ -50,3 +50,6 @@ doc-scrape-examples = true [package.metadata.docs.rs] cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"] + +[lints] +workspace = true \ No newline at end of file diff --git a/mpt_trie/src/lib.rs b/mpt_trie/src/lib.rs index 8a9e52940..c4dfabfa5 100644 --- a/mpt_trie/src/lib.rs +++ b/mpt_trie/src/lib.rs @@ -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)] diff --git a/proof_gen/Cargo.toml b/proof_gen/Cargo.toml index 07ac0fb9a..87e31d9e8 100644 --- a/proof_gen/Cargo.toml +++ b/proof_gen/Cargo.toml @@ -18,3 +18,6 @@ hashbrown = { workspace = true } # Local dependencies evm_arithmetization = { workspace = true } + +[lints] +workspace = true diff --git a/proof_gen/src/lib.rs b/proof_gen/src/lib.rs index 72f1e5c7c..c96491af4 100644 --- a/proof_gen/src/lib.rs +++ b/proof_gen/src/lib.rs @@ -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; diff --git a/smt_trie/Cargo.toml b/smt_trie/Cargo.toml index d87658c3d..08a05a0fb 100644 --- a/smt_trie/Cargo.toml +++ b/smt_trie/Cargo.toml @@ -19,3 +19,6 @@ hex-literal = { workspace = true } plonky2 = { workspace = true } rand = { workspace = true } serde = { workspace = true, features = ["derive", "rc"] } + +[lints] +workspace = true diff --git a/smt_trie/src/lib.rs b/smt_trie/src/lib.rs index 929cc1718..11315f12c 100644 --- a/smt_trie/src/lib.rs +++ b/smt_trie/src/lib.rs @@ -1,5 +1,3 @@ -#![allow(clippy::too_long_first_doc_paragraph)] - pub mod bits; pub mod code; pub mod db; diff --git a/zero_bin/common/Cargo.toml b/zero_bin/common/Cargo.toml index 2ae22f2e3..bfad3e2a8 100644 --- a/zero_bin/common/Cargo.toml +++ b/zero_bin/common/Cargo.toml @@ -33,3 +33,6 @@ once_cell = { workspace = true } cargo_metadata = { workspace = true } vergen = { workspace = true } anyhow = { workspace = true } + +[lints] +workspace = true diff --git a/zero_bin/common/src/lib.rs b/zero_bin/common/src/lib.rs index 5ad371ef8..4784cb6c4 100644 --- a/zero_bin/common/src/lib.rs +++ b/zero_bin/common/src/lib.rs @@ -1,5 +1,3 @@ -#![allow(clippy::too_long_first_doc_paragraph)] - pub mod block_interval; pub mod debug_utils; pub mod fs; diff --git a/zero_bin/leader/Cargo.toml b/zero_bin/leader/Cargo.toml index 7f3655961..73a1ef4e9 100644 --- a/zero_bin/leader/Cargo.toml +++ b/zero_bin/leader/Cargo.toml @@ -39,3 +39,6 @@ default = [] cargo_metadata = { workspace = true } vergen = { workspace = true } anyhow = { workspace = true } + +[lints] +workspace = true diff --git a/zero_bin/prover/Cargo.toml b/zero_bin/prover/Cargo.toml index 9f2050746..d0d3ee4b3 100644 --- a/zero_bin/prover/Cargo.toml +++ b/zero_bin/prover/Cargo.toml @@ -30,3 +30,6 @@ clap = {workspace = true} [features] default = [] + +[lints] +workspace = true diff --git a/zero_bin/prover/src/lib.rs b/zero_bin/prover/src/lib.rs index 22c724520..46472bc7f 100644 --- a/zero_bin/prover/src/lib.rs +++ b/zero_bin/prover/src/lib.rs @@ -1,5 +1,3 @@ -#![allow(clippy::too_long_first_doc_paragraph)] - pub mod cli; use std::future::Future;