From ffbd8e887d558b0b9d96fb8a942eb3cdbd004a43 Mon Sep 17 00:00:00 2001 From: BillyWooo Date: Wed, 22 Jan 2025 20:51:49 +0000 Subject: [PATCH] ignore clippy for vendor code --- parachain/vendor/evm-tracing/src/lib.rs | 1 + parachain/vendor/primitives/debug/src/lib.rs | 1 + parachain/vendor/primitives/evm-tracing-events/src/lib.rs | 2 ++ parachain/vendor/rpc-core/types/src/lib.rs | 2 ++ parachain/vendor/rpc/debug/src/lib.rs | 2 ++ parachain/vendor/rpc/trace/src/lib.rs | 1 + parachain/vendor/rpc/txpool/src/lib.rs | 1 + parachain/vendor/runtime/evm-tracer/src/lib.rs | 1 + 8 files changed, 11 insertions(+) diff --git a/parachain/vendor/evm-tracing/src/lib.rs b/parachain/vendor/evm-tracing/src/lib.rs index 1c964b43a0..68faa7b346 100644 --- a/parachain/vendor/evm-tracing/src/lib.rs +++ b/parachain/vendor/evm-tracing/src/lib.rs @@ -15,6 +15,7 @@ // along with Moonbeam. If not, see . //! This crate contains the client-side part that interacts with our "v2" tracing design. +#![allow(clippy::all)] pub mod formatters; pub mod listeners; diff --git a/parachain/vendor/primitives/debug/src/lib.rs b/parachain/vendor/primitives/debug/src/lib.rs index 401379bdd0..e9c101792a 100644 --- a/parachain/vendor/primitives/debug/src/lib.rs +++ b/parachain/vendor/primitives/debug/src/lib.rs @@ -15,6 +15,7 @@ // along with Moonbeam. If not, see . #![cfg_attr(not(feature = "std"), no_std)] +#![allow(clippy::all)] use ethereum::{TransactionV0 as LegacyTransaction, TransactionV2 as Transaction}; use ethereum_types::{H160, H256, U256}; diff --git a/parachain/vendor/primitives/evm-tracing-events/src/lib.rs b/parachain/vendor/primitives/evm-tracing-events/src/lib.rs index 6a0e5923c2..640f5dca07 100644 --- a/parachain/vendor/primitives/evm-tracing-events/src/lib.rs +++ b/parachain/vendor/primitives/evm-tracing-events/src/lib.rs @@ -28,6 +28,8 @@ //! The EVM event types may contain references and not implement Encode/Decode. //! This module provide mirror types and conversion into them from the original events. +#![allow(clippy::all)] + #![cfg_attr(not(feature = "std"), no_std)] extern crate alloc; diff --git a/parachain/vendor/rpc-core/types/src/lib.rs b/parachain/vendor/rpc-core/types/src/lib.rs index 4913098257..d00e5098e3 100644 --- a/parachain/vendor/rpc-core/types/src/lib.rs +++ b/parachain/vendor/rpc-core/types/src/lib.rs @@ -14,6 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Moonbeam. If not, see . +#![allow(clippy::all)] + use ethereum_types::H256; use serde::{de::Error, Deserialize, Deserializer}; diff --git a/parachain/vendor/rpc/debug/src/lib.rs b/parachain/vendor/rpc/debug/src/lib.rs index cf7a2bb972..e7acdc0364 100644 --- a/parachain/vendor/rpc/debug/src/lib.rs +++ b/parachain/vendor/rpc/debug/src/lib.rs @@ -13,6 +13,8 @@ // You should have received a copy of the GNU General Public License // along with Moonbeam. If not, see . +#![allow(clippy::all)] + use futures::StreamExt; use jsonrpsee::core::{async_trait, RpcResult}; pub use moonbeam_rpc_core_debug::{DebugServer, TraceCallParams, TraceParams}; diff --git a/parachain/vendor/rpc/trace/src/lib.rs b/parachain/vendor/rpc/trace/src/lib.rs index 7b89bc1388..c00156c23f 100644 --- a/parachain/vendor/rpc/trace/src/lib.rs +++ b/parachain/vendor/rpc/trace/src/lib.rs @@ -23,6 +23,7 @@ //! - A main `CacheTask` managing the cache and the communication between tasks. //! - For each traced block an async task responsible to wait for a permit, spawn a blocking //! task and waiting for the result, then send it to the main `CacheTask`. +#![allow(clippy::all)] use futures::{select, stream::FuturesUnordered, FutureExt, StreamExt}; use std::{collections::BTreeMap, future::Future, marker::PhantomData, sync::Arc, time::Duration}; diff --git a/parachain/vendor/rpc/txpool/src/lib.rs b/parachain/vendor/rpc/txpool/src/lib.rs index baf7805c6b..081cab7433 100644 --- a/parachain/vendor/rpc/txpool/src/lib.rs +++ b/parachain/vendor/rpc/txpool/src/lib.rs @@ -13,6 +13,7 @@ // You should have received a copy of the GNU General Public License // along with Moonbeam. If not, see . +#![allow(clippy::all)] use ethereum_types::{H160, H256, U256}; use fc_rpc::{internal_err, public_key}; diff --git a/parachain/vendor/runtime/evm-tracer/src/lib.rs b/parachain/vendor/runtime/evm-tracer/src/lib.rs index 401fd43244..4494d92c9e 100644 --- a/parachain/vendor/runtime/evm-tracer/src/lib.rs +++ b/parachain/vendor/runtime/evm-tracer/src/lib.rs @@ -23,6 +23,7 @@ //! Proxies EVM messages to the host functions. #![cfg_attr(not(feature = "std"), no_std)] +#![allow(clippy::all)] pub mod tracer { use evm_tracing_events::{EvmEvent, GasometerEvent, RuntimeEvent, StepEventFilter};