mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-22 19:49:22 +00:00
Lints from latest nightly
Some checks failed
Coordinator Tests / build (push) Has been cancelled
crypto/ Tests / test-crypto (push) Has been cancelled
Full Stack Tests / build (push) Has been cancelled
Lint / clippy (macos-13) (push) Has been cancelled
Lint / clippy (macos-14) (push) Has been cancelled
Lint / clippy (ubuntu-latest) (push) Has been cancelled
Lint / clippy (windows-latest) (push) Has been cancelled
Lint / deny (push) Has been cancelled
Lint / fmt (push) Has been cancelled
Lint / machete (push) Has been cancelled
Message Queue Tests / build (push) Has been cancelled
networks/ Tests / test-networks (push) Has been cancelled
no-std build / build (push) Has been cancelled
Processor Tests / build (push) Has been cancelled
Reproducible Runtime / build (push) Has been cancelled
Tests / test-infra (push) Has been cancelled
Tests / test-substrate (push) Has been cancelled
Tests / test-serai-client (push) Has been cancelled
Some checks failed
Coordinator Tests / build (push) Has been cancelled
crypto/ Tests / test-crypto (push) Has been cancelled
Full Stack Tests / build (push) Has been cancelled
Lint / clippy (macos-13) (push) Has been cancelled
Lint / clippy (macos-14) (push) Has been cancelled
Lint / clippy (ubuntu-latest) (push) Has been cancelled
Lint / clippy (windows-latest) (push) Has been cancelled
Lint / deny (push) Has been cancelled
Lint / fmt (push) Has been cancelled
Lint / machete (push) Has been cancelled
Message Queue Tests / build (push) Has been cancelled
networks/ Tests / test-networks (push) Has been cancelled
no-std build / build (push) Has been cancelled
Processor Tests / build (push) Has been cancelled
Reproducible Runtime / build (push) Has been cancelled
Tests / test-infra (push) Has been cancelled
Tests / test-substrate (push) Has been cancelled
Tests / test-serai-client (push) Has been cancelled
We can't adopt it due to some issue with building the runtime, but these are good to have.
This commit is contained in:
parent
a506d74d69
commit
4e834873d3
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.
|
/// Test is_odd/is_even works.
|
||||||
|
///
|
||||||
/// This test assumes an odd modulus with oddness being determined by the least-significant bit.
|
/// This test assumes an odd modulus with oddness being determined by the least-significant bit.
|
||||||
/// Accordingly, this test doesn't support fields alternatively defined.
|
/// Accordingly, this test doesn't support fields alternatively defined.
|
||||||
/// TODO: Improve in the future.
|
/// TODO: Improve in the future.
|
||||||
|
|
|
@ -13,7 +13,7 @@ impl AllowMint for () {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Investigate why Substrate generates this
|
// TODO: Investigate why Substrate generates this
|
||||||
#[allow(clippy::cast_possible_truncation)]
|
#[allow(unreachable_patterns, clippy::cast_possible_truncation)]
|
||||||
#[frame_support::pallet]
|
#[frame_support::pallet]
|
||||||
pub mod pallet {
|
pub mod pallet {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
|
@ -95,7 +95,11 @@ pub use types::*;
|
||||||
pub use weights::WeightInfo;
|
pub use weights::WeightInfo;
|
||||||
|
|
||||||
// TODO: Investigate why Substrate generates these
|
// 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]
|
#[frame_support::pallet]
|
||||||
pub mod pallet {
|
pub mod pallet {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
#![cfg_attr(not(feature = "std"), no_std)]
|
#![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]
|
#[frame_support::pallet]
|
||||||
pub mod pallet {
|
pub mod pallet {
|
||||||
use frame_system::pallet_prelude::*;
|
use frame_system::pallet_prelude::*;
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
#![cfg_attr(not(feature = "std"), no_std)]
|
#![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]
|
#[frame_support::pallet]
|
||||||
pub mod pallet {
|
pub mod pallet {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
@ -8,7 +13,6 @@ pub mod pallet {
|
||||||
use frame_support::{pallet_prelude::*, sp_runtime::SaturatedConversion};
|
use frame_support::{pallet_prelude::*, sp_runtime::SaturatedConversion};
|
||||||
|
|
||||||
use sp_std::{vec, vec::Vec, ops::Mul, collections::btree_map::BTreeMap};
|
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 coins_pallet::{Config as CoinsConfig, Pallet as Coins};
|
||||||
use dex_pallet::{Config as DexConfig, Pallet as Dex};
|
use dex_pallet::{Config as DexConfig, Pallet as Dex};
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
#![cfg_attr(not(feature = "std"), no_std)]
|
#![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]
|
#[frame_support::pallet]
|
||||||
pub mod pallet {
|
pub mod pallet {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
|
@ -10,7 +10,12 @@ pub use in_instructions_primitives as primitives;
|
||||||
use primitives::*;
|
use primitives::*;
|
||||||
|
|
||||||
// TODO: Investigate why Substrate generates these
|
// 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]
|
#[frame_support::pallet]
|
||||||
pub mod pallet {
|
pub mod pallet {
|
||||||
use sp_std::vec;
|
use sp_std::vec;
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
#[allow(
|
#[allow(
|
||||||
deprecated,
|
deprecated,
|
||||||
|
unreachable_patterns,
|
||||||
clippy::let_unit_value,
|
clippy::let_unit_value,
|
||||||
clippy::cast_possible_truncation,
|
clippy::cast_possible_truncation,
|
||||||
clippy::ignored_unit_patterns
|
clippy::ignored_unit_patterns
|
||||||
|
|
|
@ -60,6 +60,7 @@ impl<T: pallet::Config> GetValidatorCount for MembershipProof<T> {
|
||||||
|
|
||||||
#[allow(
|
#[allow(
|
||||||
deprecated,
|
deprecated,
|
||||||
|
unreachable_patterns,
|
||||||
clippy::let_unit_value,
|
clippy::let_unit_value,
|
||||||
clippy::cast_possible_truncation,
|
clippy::cast_possible_truncation,
|
||||||
clippy::ignored_unit_patterns
|
clippy::ignored_unit_patterns
|
||||||
|
|
Loading…
Reference in a new issue