Re-allow clippy::integer_arithmetic at crate-level

This commit is contained in:
Trent Nelson 2021-02-16 14:48:20 -07:00 committed by Trent Nelson
parent 7035e8485c
commit 7f7370c306
73 changed files with 73 additions and 0 deletions

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
#[macro_use]
extern crate lazy_static;
#[macro_use]

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
#[macro_use]
extern crate log;
use clap::{crate_description, crate_name, value_t, App, Arg};

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
use clap::{crate_description, crate_name, value_t, App, Arg};
use crossbeam_channel::unbounded;
use log::*;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
pub mod banks_server;
pub mod rpc_banks_service;
pub mod send_transaction_service;

View File

@ -1,4 +1,5 @@
#![allow(clippy::useless_attribute)]
#![allow(clippy::integer_arithmetic)]
use crate::order_book::*;
use itertools::izip;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
pub mod bench;
mod cli;
pub mod order_book;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
use clap::{crate_description, crate_name, App, Arg};
use solana_streamer::packet::{Packet, Packets, PacketsRecycler, PACKET_DATA_SIZE};
use solana_streamer::streamer::{receiver, PacketReceiver};

View File

@ -1,2 +1,3 @@
#![allow(clippy::integer_arithmetic)]
pub mod bench;
pub mod cli;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
use log::*;
use solana_bench_tps::bench::{do_bench_tps, generate_and_fund_keypairs, generate_keypairs};
use solana_bench_tps::cli;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
use serial_test::serial;
use solana_bench_tps::bench::{do_bench_tps, generate_and_fund_keypairs};
use solana_bench_tps::cli::Config;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
#[macro_use]
extern crate lazy_static;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
mod cli_output;
pub mod display;
pub use cli_output::*;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
macro_rules! ACCOUNT_STRING {
() => {
r#", one of:

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
#[macro_use]
extern crate serde_derive;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
#![feature(test)]
extern crate test;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
#![feature(test)]
extern crate solana_ledger;
extern crate test;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
#![feature(test)]
extern crate test;

View File

@ -1,4 +1,5 @@
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(specialization))]
#![allow(clippy::integer_arithmetic)]
//! The `solana` library implements the Solana high-performance blockchain architecture.
//! It includes a full Rust implementation of the architecture (see
//! [Validator](server/struct.Validator.html)) as well as hooks to GPU implementations of its most

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
use rayon::iter::ParallelIterator;
use rayon::prelude::*;
use serial_test::serial;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
use bincode::serialized_size;
use log::*;
use rayon::prelude::*;

View File

@ -71,6 +71,7 @@
//! ```
//! time: 4007, tip converged: 10, trunk id: 3830, trunk time: 3827, trunk converged 100, trunk height 348
//! ```
#![allow(clippy::integer_arithmetic)]
extern crate rand;
use rand::{thread_rng, Rng};

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
#[macro_use]
extern crate log;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
// Long-running ledger_cleanup tests
#[cfg(test)]

View File

@ -1,4 +1,5 @@
// Long-running bank_forks tests
#![allow(clippy::integer_arithmetic)]
macro_rules! DEFINE_SNAPSHOT_VERSION_PARAMETERIZED_TEST_FUNCTIONS {
($x:ident, $y:ident, $z:ident) => {

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
use clap::{crate_description, crate_name, value_t, value_t_or_exit, App, Arg};
use log::*;
use rand::{thread_rng, Rng};

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
use console::Emoji;
use indicatif::{ProgressBar, ProgressStyle};
use log::*;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
extern crate proc_macro;
#[cfg(RUSTC_WITH_SPECIALIZATION)]

View File

@ -1,5 +1,6 @@
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(specialization))]
#![cfg_attr(RUSTC_NEEDS_PROC_MACRO_HYGIENE, feature(proc_macro_hygiene))]
#![allow(clippy::integer_arithmetic)]
// Allows macro expansion of `use ::solana_frozen_abi::*` to work within this crate
extern crate self as solana_frozen_abi;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
pub mod address_generator;
pub mod genesis_accounts;
pub mod stakes;

View File

@ -1,4 +1,5 @@
//! A command-line executable for generating the chain's genesis config.
#![allow(clippy::integer_arithmetic)]
#[macro_use]
extern crate solana_budget_program;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
#[macro_use]
extern crate lazy_static;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
use bip39::{Language, Mnemonic, MnemonicType, Seed};
use clap::{
crate_description, crate_name, value_t, value_t_or_exit, values_t_or_exit, App, AppSettings,

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
use clap::{
crate_description, crate_name, value_t, value_t_or_exit, values_t_or_exit, App, Arg,
ArgMatches, SubCommand,

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
#![feature(test)]
extern crate test;

View File

@ -1,4 +1,5 @@
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(specialization))]
#![allow(clippy::integer_arithmetic)]
#[macro_use]
extern crate solana_bpf_loader_program;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
use solana_ledger::entry::Entry;
use solana_ledger::shred::{
max_entries_per_n_shred, verify_test_data_shred, Shred, Shredder,

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
pub mod cluster;
pub mod cluster_tests;
pub mod local_cluster;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
use assert_matches::assert_matches;
use crossbeam_channel::{unbounded, Receiver};
use gag::BufferRedirect;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
extern crate byte_unit;
use byte_unit::Byte;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
pub mod measure;
pub mod thread_mem_usage;

View File

@ -1,2 +1,3 @@
#![allow(clippy::integer_arithmetic)]
pub mod merkle_tree;
pub use merkle_tree::MerkleTree;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
pub mod counter;
pub mod datapoint;
mod metrics;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
use clap::{
crate_description, crate_name, crate_version, value_t, value_t_or_exit, App, Arg, ArgMatches,
SubCommand,

View File

@ -1,4 +1,5 @@
//! The `net_utils` module assists with networking
#![allow(clippy::integer_arithmetic)]
use {
log::*,
rand::{thread_rng, Rng},

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
pub mod cuda_runtime;
pub mod packet;
pub mod perf_libs;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
use clap::{crate_description, crate_name, value_t, App, Arg};
use solana_ledger::entry::{self, create_ticks, init_poh, EntrySlice, VerifyRecyclers};
use solana_measure::measure::Measure;

View File

@ -1,4 +1,5 @@
//! The solana-program-test provides a BanksClient-based test framework BPF programs
#![allow(clippy::integer_arithmetic)]
use {
async_trait::async_trait,

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
use {
solana_program::{
account_info::{next_account_info, AccountInfo},

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
pub mod alloc;
pub mod allocator_bump;
pub mod bpf_verifier;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
pub mod budget_expr;
pub mod budget_instruction;
pub mod budget_processor;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
pub mod config_instruction;
pub mod config_processor;
pub mod date_instruction;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
pub mod exchange_instruction;
pub mod exchange_processor;
pub mod exchange_state;

View File

@ -1,4 +1,5 @@
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(specialization))]
#![allow(clippy::integer_arithmetic)]
use solana_sdk::genesis_config::GenesisConfig;
pub mod config;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
pub mod vest_instruction;
pub mod vest_processor;
pub mod vest_schedule;

View File

@ -1,4 +1,5 @@
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(specialization))]
#![allow(clippy::integer_arithmetic)]
pub mod authorized_voters;
pub mod vote_instruction;

View File

@ -1,4 +1,5 @@
//! Ramp up TPS for Tour de SOL until all validators drop out
#![allow(clippy::integer_arithmetic)]
mod results;
mod stake;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
pub mod ledger;
pub mod ledger_error;
pub mod remote_keypair;

View File

@ -1,4 +1,5 @@
#![feature(test)]
#![allow(clippy::integer_arithmetic)]
extern crate test;

View File

@ -1,4 +1,5 @@
#![feature(test)]
#![allow(clippy::integer_arithmetic)]
extern crate test;

View File

@ -1,4 +1,5 @@
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(specialization))]
#![allow(clippy::integer_arithmetic)]
pub mod accounts;
pub mod accounts_background_service;
pub mod accounts_cache;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
use solana_runtime::{
bank::Bank,
bank_client::BankClient,

View File

@ -1,5 +1,6 @@
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(specialization))]
#![cfg_attr(RUSTC_NEEDS_PROC_MACRO_HYGIENE, feature(proc_macro_hygiene))]
#![allow(clippy::integer_arithmetic)]
// Allows macro expansion of `use ::solana_program::*` to work within this crate
extern crate self as solana_program;

View File

@ -1,5 +1,6 @@
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(specialization))]
#![cfg_attr(RUSTC_NEEDS_PROC_MACRO_HYGIENE, feature(proc_macro_hygiene))]
#![allow(clippy::integer_arithmetic)]
// Allows macro expansion of `use ::solana_sdk::*` to work within this crate
extern crate self as solana_sdk;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
mod arg_parser;
mod args;
mod stake_accounts;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
use log::*;
use serde::{Deserialize, Serialize};
use solana_client::{client_error::Result as ClientResult, rpc_client::RpcClient};

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
use clap::{crate_description, crate_name, crate_version, value_t, value_t_or_exit, App, Arg};
use log::*;
use solana_clap_utils::{

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
use log::*;
use serde::{Deserialize, Serialize};
use solana_sdk::{

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
pub mod packet;
pub mod recvmmsg;
pub mod sendmmsg;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
pub mod arg_parser;
pub mod args;
pub mod commands;

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
#[macro_use]
extern crate lazy_static;
#[macro_use]

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
pub use solana_core::test_validator;
use {
log::*,

View File

@ -1,3 +1,4 @@
#![allow(clippy::integer_arithmetic)]
use clap::{
crate_description, crate_name, value_t, value_t_or_exit, values_t, values_t_or_exit, App,
AppSettings, Arg, ArgMatches, SubCommand,

View File

@ -1,4 +1,5 @@
//! A command-line executable for monitoring the health of a cluster
#![allow(clippy::integer_arithmetic)]
use {
clap::{crate_description, crate_name, value_t, value_t_or_exit, App, Arg},