Skip to content

Commit

Permalink
comment out deny warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
segfault-magnet committed Mar 29, 2024
1 parent cba983d commit 00546bf
Show file tree
Hide file tree
Showing 27 changed files with 107 additions and 107 deletions.
8 changes: 4 additions & 4 deletions bin/fuel-core-client/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(unused_crate_dependencies)]
#![deny(warnings)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(unused_crate_dependencies)]
//#![deny(warnings)]

use clap::Parser;
use fuel_core_client::client::FuelClient;
Expand Down
8 changes: 4 additions & 4 deletions bin/fuel-core/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(unused_crate_dependencies)]
#![deny(warnings)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(unused_crate_dependencies)]
//#![deny(warnings)]

// Use Jemalloc for main binary
#[global_allocator]
Expand Down
8 changes: 4 additions & 4 deletions crates/chain-config/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![deny(clippy::cast_possible_truncation)]
#![deny(clippy::arithmetic_side_effects)]
#![deny(unused_crate_dependencies)]
#![deny(warnings)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(unused_crate_dependencies)]
//#![deny(warnings)]

pub mod config;
pub mod fee_collection_contract;
Expand Down
8 changes: 4 additions & 4 deletions crates/client/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(unused_crate_dependencies)]
#![deny(warnings)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(unused_crate_dependencies)]
//#![deny(warnings)]
pub mod client;
pub mod schema;

Expand Down
12 changes: 6 additions & 6 deletions crates/database/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
//! defined here are used by services but are flexible enough to customize the
//! logic when the `Database` is known.
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(missing_docs)]
#![deny(unused_crate_dependencies)]
#![deny(warnings)]
#![deny(unused_variables)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(missing_docs)]
//#![deny(unused_crate_dependencies)]
//#![deny(warnings)]
//#![deny(unused_variables)]

use fuel_core_storage::Error as StorageError;
use fuel_core_types::services::executor::Error as ExecutorError;
Expand Down
8 changes: 4 additions & 4 deletions crates/fuel-core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(unused_crate_dependencies)]
#![deny(warnings)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(unused_crate_dependencies)]
//#![deny(warnings)]

pub const VERSION: &str = env!("CARGO_PKG_VERSION");

Expand Down
4 changes: 2 additions & 2 deletions crates/keygen/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]

use clap::ValueEnum;
use fuel_core_types::{
Expand Down
8 changes: 4 additions & 4 deletions crates/metrics/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(unused_crate_dependencies)]
#![deny(warnings)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(unused_crate_dependencies)]
//#![deny(warnings)]

use std::sync::OnceLock;

Expand Down
8 changes: 4 additions & 4 deletions crates/services/consensus_module/bft/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(unused_crate_dependencies)]
#![deny(warnings)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(unused_crate_dependencies)]
//#![deny(warnings)]
10 changes: 5 additions & 5 deletions crates/services/consensus_module/poa/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(unused_crate_dependencies)]
#![deny(unused_must_use)]
#![deny(warnings)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(unused_crate_dependencies)]
//#![deny(unused_must_use)]
//#![deny(warnings)]

mod deadline_clock;
mod sync;
Expand Down
10 changes: 5 additions & 5 deletions crates/services/consensus_module/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
//! Common traits and logic for managing the lifecycle of services
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(unused_crate_dependencies)]
#![deny(missing_docs)]
#![deny(warnings)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(unused_crate_dependencies)]
//#![deny(missing_docs)]
//#![deny(warnings)]

use core::time::Duration;
use fuel_core_types::blockchain::primitives::DaBlockHeight;
Expand Down
8 changes: 4 additions & 4 deletions crates/services/executor/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(unused_crate_dependencies)]
#![deny(warnings)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(unused_crate_dependencies)]
//#![deny(warnings)]

pub mod executor;
pub mod ports;
Expand Down
8 changes: 4 additions & 4 deletions crates/services/importer/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(unused_crate_dependencies)]
#![deny(warnings)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(unused_crate_dependencies)]
//#![deny(warnings)]

pub mod config;
pub mod importer;
Expand Down
4 changes: 2 additions & 2 deletions crates/services/p2p/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]

pub mod behavior;
pub mod codecs;
Expand Down
10 changes: 5 additions & 5 deletions crates/services/producer/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(unused_crate_dependencies)]
#![deny(unused_must_use)]
#![deny(warnings)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(unused_crate_dependencies)]
//#![deny(unused_must_use)]
//#![deny(warnings)]

pub mod block_producer;
pub mod config;
Expand Down
10 changes: 5 additions & 5 deletions crates/services/relayer/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//! # Fuel Relayer
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(unused_crate_dependencies)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(unused_crate_dependencies)]
#![forbid(unsafe_code)]
#![deny(missing_docs)]
#![deny(warnings)]
//#![deny(missing_docs)]
//#![deny(warnings)]

pub(crate) mod abi;
pub(crate) mod config;
Expand Down
10 changes: 5 additions & 5 deletions crates/services/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
//! Common traits and logic for managing the lifecycle of services
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(unused_crate_dependencies)]
#![deny(missing_docs)]
#![deny(warnings)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(unused_crate_dependencies)]
//#![deny(missing_docs)]
//#![deny(warnings)]

mod service;
mod state;
Expand Down
10 changes: 5 additions & 5 deletions crates/services/sync/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(unused_crate_dependencies)]
#![deny(missing_docs)]
#![deny(warnings)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(unused_crate_dependencies)]
//#![deny(missing_docs)]
//#![deny(warnings)]
//! # Sync Service
//! Responsible for syncing the blockchain from the network.
Expand Down
8 changes: 4 additions & 4 deletions crates/services/txpool/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(unused_crate_dependencies)]
#![deny(warnings)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(unused_crate_dependencies)]
//#![deny(warnings)]

use fuel_core_types::{
services::txpool::{
Expand Down
8 changes: 4 additions & 4 deletions crates/services/upgradable-executor/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(unused_crate_dependencies)]
#![deny(warnings)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(unused_crate_dependencies)]
//#![deny(warnings)]

pub mod config;
pub mod executor;
Expand Down
6 changes: 3 additions & 3 deletions crates/services/upgradable-executor/wasm-executor/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! The library defines some common parts used by the WASM executor and upgradable executor.
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(warnings)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(warnings)]

pub mod utils;
8 changes: 4 additions & 4 deletions crates/services/upgradable-executor/wasm-executor/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
//! Currently, the WASM executor is designed only for one block execution per WASM instance.
//! But later, it will be improved, and the instance will be reusable.
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(unused_crate_dependencies)]
#![deny(warnings)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(unused_crate_dependencies)]
//#![deny(warnings)]

use crate::{
relayer::WasmRelayer,
Expand Down
10 changes: 5 additions & 5 deletions crates/storage/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
//! defined here are used by services but are flexible enough to customize the
//! logic when the `Database` is known.
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(unused_crate_dependencies)]
#![deny(missing_docs)]
#![deny(warnings)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(unused_crate_dependencies)]
//#![deny(missing_docs)]
//#![deny(warnings)]

use core::array::TryFromSliceError;
use fuel_core_types::services::executor::Error as ExecutorError;
Expand Down
4 changes: 2 additions & 2 deletions crates/trace/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]

use ctor::ctor;
use std::env::var;
Expand Down
10 changes: 5 additions & 5 deletions crates/types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
//! libraries. This crate doesn't contain any business logic and is to be such primitive as that
//! is possible.
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(unused_crate_dependencies)]
#![deny(missing_docs)]
#![deny(warnings)]
//#![deny(clippy::arithmetic_side_effects)]
//#![deny(clippy::cast_possible_truncation)]
//#![deny(unused_crate_dependencies)]
//#![deny(missing_docs)]
//#![deny(warnings)]

#[doc(no_inline)]
pub use fuel_vm_private::{
Expand Down
4 changes: 2 additions & 2 deletions tests/tests/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![deny(unused_must_use)]
#![deny(warnings)]
//#![deny(unused_must_use)]
//#![deny(warnings)]

mod balances;
mod blocks;
Expand Down
4 changes: 2 additions & 2 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![deny(unused_crate_dependencies)]
#![deny(warnings)]
//#![deny(unused_crate_dependencies)]
//#![deny(warnings)]

use clap::Parser;
use commands::{
Expand Down

0 comments on commit 00546bf

Please sign in to comment.