mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-03 17:40:34 +00:00
Merge branch 'develop' of https://github.com/serai-dex/serai into move-emissions-tests
This commit is contained in:
commit
be6ba7bbea
9 changed files with 33 additions and 7 deletions
|
@ -31,6 +31,7 @@ pub fn test_from_u128<F: PrimeField>() {
|
|||
}
|
||||
|
||||
/// Test is_odd/is_even works.
|
||||
///
|
||||
/// This test assumes an odd modulus with oddness being determined by the least-significant bit.
|
||||
/// Accordingly, this test doesn't support fields alternatively defined.
|
||||
/// TODO: Improve in the future.
|
||||
|
|
|
@ -13,7 +13,7 @@ impl AllowMint for () {
|
|||
}
|
||||
|
||||
// TODO: Investigate why Substrate generates this
|
||||
#[allow(clippy::cast_possible_truncation)]
|
||||
#[allow(unreachable_patterns, clippy::cast_possible_truncation)]
|
||||
#[frame_support::pallet]
|
||||
pub mod pallet {
|
||||
use super::*;
|
||||
|
|
|
@ -95,7 +95,11 @@ pub use types::*;
|
|||
pub use weights::WeightInfo;
|
||||
|
||||
// TODO: Investigate why Substrate generates these
|
||||
#[allow(clippy::cast_possible_truncation, clippy::no_effect_underscore_binding)]
|
||||
#[allow(
|
||||
unreachable_patterns,
|
||||
clippy::cast_possible_truncation,
|
||||
clippy::no_effect_underscore_binding
|
||||
)]
|
||||
#[frame_support::pallet]
|
||||
pub mod pallet {
|
||||
use super::*;
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
#[allow(clippy::cast_possible_truncation, clippy::no_effect_underscore_binding, clippy::empty_docs)]
|
||||
#[allow(
|
||||
unreachable_patterns,
|
||||
clippy::cast_possible_truncation,
|
||||
clippy::no_effect_underscore_binding,
|
||||
clippy::empty_docs
|
||||
)]
|
||||
#[frame_support::pallet]
|
||||
pub mod pallet {
|
||||
use frame_system::pallet_prelude::*;
|
||||
|
|
|
@ -6,7 +6,12 @@ mod tests;
|
|||
#[cfg(test)]
|
||||
mod mock;
|
||||
|
||||
#[allow(clippy::cast_possible_truncation, clippy::no_effect_underscore_binding, clippy::empty_docs)]
|
||||
#[allow(
|
||||
unreachable_patterns,
|
||||
clippy::cast_possible_truncation,
|
||||
clippy::no_effect_underscore_binding,
|
||||
clippy::empty_docs
|
||||
)]
|
||||
#[frame_support::pallet]
|
||||
pub mod pallet {
|
||||
use super::*;
|
||||
|
@ -14,7 +19,6 @@ pub mod pallet {
|
|||
use frame_support::{pallet_prelude::*, sp_runtime::SaturatedConversion};
|
||||
|
||||
use sp_std::{vec, vec::Vec, ops::Mul, collections::btree_map::BTreeMap};
|
||||
use sp_runtime;
|
||||
|
||||
use coins_pallet::{Config as CoinsConfig, Pallet as Coins};
|
||||
use dex_pallet::{Config as DexConfig, Pallet as Dex};
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
#[allow(clippy::cast_possible_truncation, clippy::no_effect_underscore_binding, clippy::empty_docs)]
|
||||
#[allow(
|
||||
unreachable_patterns,
|
||||
clippy::cast_possible_truncation,
|
||||
clippy::no_effect_underscore_binding,
|
||||
clippy::empty_docs
|
||||
)]
|
||||
#[frame_support::pallet]
|
||||
pub mod pallet {
|
||||
use super::*;
|
||||
|
|
|
@ -10,7 +10,12 @@ pub use in_instructions_primitives as primitives;
|
|||
use primitives::*;
|
||||
|
||||
// TODO: Investigate why Substrate generates these
|
||||
#[allow(clippy::cast_possible_truncation, clippy::no_effect_underscore_binding, clippy::empty_docs)]
|
||||
#[allow(
|
||||
unreachable_patterns,
|
||||
clippy::cast_possible_truncation,
|
||||
clippy::no_effect_underscore_binding,
|
||||
clippy::empty_docs
|
||||
)]
|
||||
#[frame_support::pallet]
|
||||
pub mod pallet {
|
||||
use sp_std::vec;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#[allow(
|
||||
deprecated,
|
||||
unreachable_patterns,
|
||||
clippy::let_unit_value,
|
||||
clippy::cast_possible_truncation,
|
||||
clippy::ignored_unit_patterns
|
||||
|
|
|
@ -60,6 +60,7 @@ impl<T: pallet::Config> GetValidatorCount for MembershipProof<T> {
|
|||
|
||||
#[allow(
|
||||
deprecated,
|
||||
unreachable_patterns,
|
||||
clippy::let_unit_value,
|
||||
clippy::cast_possible_truncation,
|
||||
clippy::ignored_unit_patterns
|
||||
|
|
Loading…
Reference in a new issue