Re-allow clippy::integer_arithmetic at crate-level
This commit is contained in:
parent
7035e8485c
commit
7f7370c306
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
#[macro_use]
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
use clap::{crate_description, crate_name, value_t, App, Arg};
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
use clap::{crate_description, crate_name, value_t, App, Arg};
|
||||
use crossbeam_channel::unbounded;
|
||||
use log::*;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
pub mod banks_server;
|
||||
pub mod rpc_banks_service;
|
||||
pub mod send_transaction_service;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#![allow(clippy::useless_attribute)]
|
||||
#![allow(clippy::integer_arithmetic)]
|
||||
|
||||
use crate::order_book::*;
|
||||
use itertools::izip;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
pub mod bench;
|
||||
mod cli;
|
||||
pub mod order_book;
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
pub mod bench;
|
||||
pub mod cli;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
mod cli_output;
|
||||
pub mod display;
|
||||
pub use cli_output::*;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
macro_rules! ACCOUNT_STRING {
|
||||
() => {
|
||||
r#", one of:
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
#![feature(test)]
|
||||
|
||||
extern crate test;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
#![feature(test)]
|
||||
extern crate solana_ledger;
|
||||
extern crate test;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
#![feature(test)]
|
||||
|
||||
extern crate test;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
use rayon::iter::ParallelIterator;
|
||||
use rayon::prelude::*;
|
||||
use serial_test::serial;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
use bincode::serialized_size;
|
||||
use log::*;
|
||||
use rayon::prelude::*;
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
// Long-running ledger_cleanup tests
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
|
@ -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) => {
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
use console::Emoji;
|
||||
use indicatif::{ProgressBar, ProgressStyle};
|
||||
use log::*;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
extern crate proc_macro;
|
||||
|
||||
#[cfg(RUSTC_WITH_SPECIALIZATION)]
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
pub mod address_generator;
|
||||
pub mod genesis_accounts;
|
||||
pub mod stakes;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
#![feature(test)]
|
||||
extern crate test;
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(specialization))]
|
||||
#![allow(clippy::integer_arithmetic)]
|
||||
#[macro_use]
|
||||
extern crate solana_bpf_loader_program;
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
pub mod cluster;
|
||||
pub mod cluster_tests;
|
||||
pub mod local_cluster;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
use assert_matches::assert_matches;
|
||||
use crossbeam_channel::{unbounded, Receiver};
|
||||
use gag::BufferRedirect;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
extern crate byte_unit;
|
||||
|
||||
use byte_unit::Byte;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
pub mod measure;
|
||||
pub mod thread_mem_usage;
|
||||
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
pub mod merkle_tree;
|
||||
pub use merkle_tree::MerkleTree;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
pub mod counter;
|
||||
pub mod datapoint;
|
||||
mod metrics;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
//! The `net_utils` module assists with networking
|
||||
#![allow(clippy::integer_arithmetic)]
|
||||
use {
|
||||
log::*,
|
||||
rand::{thread_rng, Rng},
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
pub mod cuda_runtime;
|
||||
pub mod packet;
|
||||
pub mod perf_libs;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
use {
|
||||
solana_program::{
|
||||
account_info::{next_account_info, AccountInfo},
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
pub mod alloc;
|
||||
pub mod allocator_bump;
|
||||
pub mod bpf_verifier;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
pub mod budget_expr;
|
||||
pub mod budget_instruction;
|
||||
pub mod budget_processor;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
pub mod config_instruction;
|
||||
pub mod config_processor;
|
||||
pub mod date_instruction;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
pub mod exchange_instruction;
|
||||
pub mod exchange_processor;
|
||||
pub mod exchange_state;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(specialization))]
|
||||
#![allow(clippy::integer_arithmetic)]
|
||||
use solana_sdk::genesis_config::GenesisConfig;
|
||||
|
||||
pub mod config;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
pub mod vest_instruction;
|
||||
pub mod vest_processor;
|
||||
pub mod vest_schedule;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(specialization))]
|
||||
#![allow(clippy::integer_arithmetic)]
|
||||
|
||||
pub mod authorized_voters;
|
||||
pub mod vote_instruction;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
//! Ramp up TPS for Tour de SOL until all validators drop out
|
||||
#![allow(clippy::integer_arithmetic)]
|
||||
|
||||
mod results;
|
||||
mod stake;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
pub mod ledger;
|
||||
pub mod ledger_error;
|
||||
pub mod remote_keypair;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#![feature(test)]
|
||||
#![allow(clippy::integer_arithmetic)]
|
||||
|
||||
extern crate test;
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#![feature(test)]
|
||||
#![allow(clippy::integer_arithmetic)]
|
||||
|
||||
extern crate test;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
use solana_runtime::{
|
||||
bank::Bank,
|
||||
bank_client::BankClient,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
mod arg_parser;
|
||||
mod args;
|
||||
mod stake_accounts;
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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::{
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
use log::*;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use solana_sdk::{
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
pub mod packet;
|
||||
pub mod recvmmsg;
|
||||
pub mod sendmmsg;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
pub mod arg_parser;
|
||||
pub mod args;
|
||||
pub mod commands;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
#[macro_use]
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![allow(clippy::integer_arithmetic)]
|
||||
pub use solana_core::test_validator;
|
||||
use {
|
||||
log::*,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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},
|
||||
|
|
Loading…
Reference in New Issue