sdk/program: switch allow to mod-level for integer_arithmetic lint
This commit is contained in:
committed by
Trent Nelson
parent
5b2b824a53
commit
98d7673a03
@ -1,3 +1,4 @@
|
|||||||
|
#![allow(clippy::integer_arithmetic)]
|
||||||
//! Borsh utils
|
//! Borsh utils
|
||||||
use borsh::schema::{BorshSchema, Declaration, Definition, Fields};
|
use borsh::schema::{BorshSchema, Declaration, Definition, Fields};
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#![allow(clippy::integer_arithmetic)]
|
||||||
//! @brief Solana Rust-based BPF program entry point supported by the latest
|
//! @brief Solana Rust-based BPF program entry point supported by the latest
|
||||||
//! BPFLoader. For more information see './bpf_loader.rs'
|
//! BPFLoader. For more information see './bpf_loader.rs'
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#![allow(clippy::integer_arithmetic)]
|
||||||
//! @brief Solana Rust-based BPF program entry point supported by the original
|
//! @brief Solana Rust-based BPF program entry point supported by the original
|
||||||
//! and now deprecated BPFLoader. For more information see
|
//! and now deprecated BPFLoader. For more information see
|
||||||
//! './bpf_loader_deprecated.rs'
|
//! './bpf_loader_deprecated.rs'
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#![allow(clippy::integer_arithmetic)]
|
||||||
//! configuration for epochs, slots
|
//! configuration for epochs, slots
|
||||||
|
|
||||||
/// 1 Epoch = 400 * 8192 ms ~= 55 minutes
|
/// 1 Epoch = 400 * 8192 ms ~= 55 minutes
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#![allow(clippy::integer_arithmetic)]
|
||||||
use crate::clock::DEFAULT_MS_PER_SLOT;
|
use crate::clock::DEFAULT_MS_PER_SLOT;
|
||||||
use crate::message::Message;
|
use crate::message::Message;
|
||||||
use crate::secp256k1_program;
|
use crate::secp256k1_program;
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#![allow(clippy::integer_arithmetic)]
|
||||||
//! Defines a composable Instruction type and a memory-efficient CompiledInstruction.
|
//! Defines a composable Instruction type and a memory-efficient CompiledInstruction.
|
||||||
|
|
||||||
use crate::sanitize::Sanitize;
|
use crate::sanitize::Sanitize;
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(specialization))]
|
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(specialization))]
|
||||||
#![cfg_attr(RUSTC_NEEDS_PROC_MACRO_HYGIENE, feature(proc_macro_hygiene))]
|
#![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
|
// Allows macro expansion of `use ::solana_program::*` to work within this crate
|
||||||
extern crate self as solana_program;
|
extern crate self as solana_program;
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#![allow(clippy::integer_arithmetic)]
|
||||||
//! A library for generating a message from a sequence of instructions
|
//! A library for generating a message from a sequence of instructions
|
||||||
|
|
||||||
use crate::sanitize::{Sanitize, SanitizeError};
|
use crate::sanitize::{Sanitize, SanitizeError};
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#![allow(clippy::integer_arithmetic)]
|
||||||
/// There are 10^9 lamports in one SOL
|
/// There are 10^9 lamports in one SOL
|
||||||
pub const LAMPORTS_PER_SOL: u64 = 1_000_000_000;
|
pub const LAMPORTS_PER_SOL: u64 = 1_000_000_000;
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#![allow(clippy::integer_arithmetic)]
|
||||||
use crate::{decode_error::DecodeError, instruction::InstructionError, msg, pubkey::PubkeyError};
|
use crate::{decode_error::DecodeError, instruction::InstructionError, msg, pubkey::PubkeyError};
|
||||||
use borsh::maybestd::io::Error as BorshIoError;
|
use borsh::maybestd::io::Error as BorshIoError;
|
||||||
use num_traits::{FromPrimitive, ToPrimitive};
|
use num_traits::{FromPrimitive, ToPrimitive};
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#![allow(clippy::integer_arithmetic)]
|
||||||
use crate::{decode_error::DecodeError, hash::hashv};
|
use crate::{decode_error::DecodeError, hash::hashv};
|
||||||
use borsh::{BorshDeserialize, BorshSchema, BorshSerialize};
|
use borsh::{BorshDeserialize, BorshSchema, BorshSerialize};
|
||||||
use num_derive::{FromPrimitive, ToPrimitive};
|
use num_derive::{FromPrimitive, ToPrimitive};
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#![allow(clippy::integer_arithmetic)]
|
||||||
//! configuration for network rent
|
//! configuration for network rent
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#![allow(clippy::integer_arithmetic)]
|
||||||
use crate::pubkey::Pubkey;
|
use crate::pubkey::Pubkey;
|
||||||
use crate::sanitize::SanitizeError;
|
use crate::sanitize::SanitizeError;
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#![allow(clippy::integer_arithmetic)]
|
||||||
use serde::{
|
use serde::{
|
||||||
de::{self, Deserializer, SeqAccess, Visitor},
|
de::{self, Deserializer, SeqAccess, Visitor},
|
||||||
ser::{self, SerializeTuple, Serializer},
|
ser::{self, SerializeTuple, Serializer},
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#![allow(clippy::integer_arithmetic)]
|
||||||
//!
|
//!
|
||||||
//! slot history
|
//! slot history
|
||||||
//!
|
//!
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#![allow(clippy::integer_arithmetic)]
|
||||||
//! This account contains the serialized transaction instructions
|
//! This account contains the serialized transaction instructions
|
||||||
|
|
||||||
use crate::{instruction::Instruction, sanitize::SanitizeError, sysvar::Sysvar};
|
use crate::{instruction::Instruction, sanitize::SanitizeError, sysvar::Sysvar};
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#![allow(clippy::integer_arithmetic)]
|
||||||
use crate::{
|
use crate::{
|
||||||
declare_sysvar_id,
|
declare_sysvar_id,
|
||||||
fee_calculator::FeeCalculator,
|
fee_calculator::FeeCalculator,
|
||||||
|
Reference in New Issue
Block a user