Skip to content

Commit 43737f3

Browse files
authored
Update Rust Toolchain to 1.77, Suppress Warnings, and Enhance Runtime (#778)
* using runt 1.77 * fix clippy errors * fixing clippy * update to runtime 2200 * update proyect version to 0.22.0 * add missing migration * removed the upgrade of versioning
1 parent d70158c commit 43737f3

12 files changed

Lines changed: 27 additions & 15 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node/src/eth.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ use std::{
2424
use futures::{future, prelude::*};
2525
// Substrate
2626
use sc_client_api::BlockchainEvents;
27+
#[allow(deprecated)]
2728
use sc_executor::{NativeElseWasmExecutor, NativeExecutionDispatch};
2829

2930
use sc_network_sync::SyncingService;
@@ -138,6 +139,7 @@ impl<Api> EthCompatRuntimeApiCollection for Api where
138139
}
139140

140141
#[allow(clippy::too_many_arguments)]
142+
#[allow(deprecated)]
141143
pub async fn spawn_frontier_tasks<RuntimeApi, Executor>(
142144
task_manager: &TaskManager,
143145
client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<Executor>>>,

node/src/service.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ use frame_benchmarking_cli::SUBSTRATE_REFERENCE_HARDWARE;
4141
use futures::FutureExt;
4242
use sc_client_api::Backend;
4343
use sc_consensus::ImportQueue;
44+
#[allow(deprecated)]
4445
use sc_executor::{
4546
HeapAllocStrategy, NativeElseWasmExecutor, WasmExecutor, DEFAULT_HEAP_ALLOC_STRATEGY,
4647
};
@@ -73,6 +74,7 @@ impl sc_executor::NativeExecutionDispatch for ParachainNativeExecutor {
7374
}
7475
}
7576

77+
#[allow(deprecated)]
7678
type ParachainExecutor = NativeElseWasmExecutor<ParachainNativeExecutor>;
7779

7880
type ParachainClient = TFullClient<Block, RuntimeApi, ParachainExecutor>;

pallets/asset-metadata-extender/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ pub use types::*;
3535
pub use weights::WeightInfo;
3636

3737
#[frame_support::pallet]
38-
#[allow(clippy::manual_inspect)]
3938
pub mod pallet {
4039
use super::*;
4140

pallets/laos-evolution/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ pub use types::*;
4343
pub use weights::WeightInfo;
4444

4545
#[frame_support::pallet]
46-
#[allow(clippy::manual_inspect)]
4746
pub mod pallet {
4847
use super::*;
4948

pallets/parachain-staking/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ pub use types::*;
7777
pub use RoundIndex;
7878

7979
#[pallet]
80-
#[allow(clippy::manual_inspect)]
8180
pub mod pallet {
8281
use crate::{
8382
delegation_requests::{CancelledScheduledRequest, DelegationAction, ScheduledRequest},

pallets/parachain-staking/src/mock.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,6 @@ fn geneses() {
410410

411411
#[allow(unused_imports)]
412412
#[frame_support::pallet]
413-
#[allow(clippy::manual_inspect)]
414413
pub(crate) mod block_author {
415414
use super::*;
416415
use frame_support::{pallet_prelude::*, traits::Get};

pallets/parachain-staking/src/tests.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4833,8 +4833,6 @@ fn deferred_payment_and_at_stake_storage_items_cleaned_up_for_candidates_not_pro
48334833

48344834
#[test]
48354835
fn deferred_payment_steady_state_event_flow() {
4836-
use frame_support::traits::{Currency, ExistenceRequirement, WithdrawReasons};
4837-
48384836
// this test "flows" through a number of rounds, asserting that certain things do/don't happen
48394837
// once the staking pallet is in a "steady state" (specifically, once we are past the first few
48404838
// rounds to clear RewardPaymentDelay)
@@ -4886,8 +4884,7 @@ fn deferred_payment_steady_state_event_flow() {
48864884
let reset_issuance = || {
48874885
let new_issuance = Balances::total_issuance();
48884886
let diff = new_issuance - initial_issuance;
4889-
let _ =
4890-
Balances::burn(Some(111).into(), diff, false).expect("Account can absorb burn");
4887+
Balances::burn(Some(111).into(), diff, false).expect("Account can absorb burn");
48914888
};
48924889

48934890
// fn to roll through the first RewardPaymentDelay rounds. returns new round index

pallets/precompiles-benchmark/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ pub mod weights;
2424
pub use weights::WeightInfo;
2525

2626
#[frame_support::pallet]
27-
#[allow(clippy::manual_inspect)]
2827
pub mod pallet {
2928
use crate::*;
3029

runtime/laos/src/configs/treasury.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use super::collective::CouncilMajority;
22
use crate::{
3-
currency::UNIT, weights, AccountId, Balance, Balances, BlockNumber, Permill, Runtime,
4-
RuntimeEvent, Treasury,
3+
weights, AccountId, Balance, Balances, BlockNumber, Permill, Runtime, RuntimeEvent, Treasury,
54
};
65
use frame_support::{
76
parameter_types,

0 commit comments

Comments
 (0)