Skip to content

Commit 334eff9

Browse files
authored
Merge pull request #3743 from autonomys/update-rust-toolchain
Update rust toolchain
2 parents 080fdce + 95df2e1 commit 334eff9

File tree

44 files changed

+442
-436
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+442
-436
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 131 additions & 131 deletions
Large diffs are not rendered by default.

crates/pallet-domains/src/fuzz/staking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ fn create_genesis_storage(accounts: &[AccountId], mint: u128) -> Storage {
147147
}
148148

149149
pub fn run_staking_fuzz(data: &[u8]) {
150-
let accounts: Vec<AccountId> = (0..5).map(|i| (i as u128)).collect();
150+
let accounts: Vec<AccountId> = (0..5).map(|i| i as u128).collect();
151151
let mint = (u16::MAX as u128) * 2 * AI3;
152152
let genesis = create_genesis_storage(&accounts, mint);
153153
let Ok(data) = bincode::deserialize(data) else {

crates/pallet-subspace/src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![doc = include_str!("../README.md")]
22
#![cfg_attr(not(feature = "std"), no_std)]
3-
#![feature(array_chunks, assert_matches, portable_simd)]
3+
#![feature(assert_matches, portable_simd)]
44
#![warn(unused_must_use, unsafe_code, unused_variables)]
55

66
#[cfg(not(feature = "std"))]
@@ -639,7 +639,10 @@ pub mod pallet {
639639
) -> DispatchResult {
640640
ensure_root(origin)?;
641641

642-
if slot_iterations.get() % u32::from(PotCheckpoints::NUM_CHECKPOINTS.get() * 2) != 0 {
642+
if !slot_iterations
643+
.get()
644+
.is_multiple_of(u32::from(PotCheckpoints::NUM_CHECKPOINTS.get() * 2))
645+
{
643646
return Err(Error::<T>::NotMultipleOfCheckpoints.into());
644647
}
645648

crates/sc-consensus-subspace/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//!
77
//! All of the modules here are crucial for consensus, open each module for specific details.
88
9-
#![feature(try_blocks, duration_constructors_lite)]
9+
#![feature(try_blocks)]
1010
#![forbid(unsafe_code)]
1111
#![warn(missing_docs)]
1212

crates/sp-domains-fraud-proof/src/host_functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use subspace_runtime_primitives::Balance;
3636
struct DomainRuntimeCodeFetcher(Vec<u8>);
3737

3838
impl FetchRuntimeCode for DomainRuntimeCodeFetcher {
39-
fn fetch_runtime_code(&self) -> Option<Cow<[u8]>> {
39+
fn fetch_runtime_code(&self) -> Option<Cow<'_, [u8]>> {
4040
Some(Cow::Borrowed(self.0.as_ref()))
4141
}
4242
}

crates/sp-domains/src/bundle.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ where
158158
pub fn receipt(
159159
&self,
160160
) -> ExecutionReceiptRef<
161+
'_,
161162
Number,
162163
Hash,
163164
HeaderNumberFor<DomainHeader>,
@@ -218,7 +219,7 @@ where
218219
}
219220

220221
/// Returns the sealed header in the Bundle.
221-
pub fn sealed_header(&self) -> SealedBundleHeaderRef<Number, Hash, DomainHeader, Balance> {
222+
pub fn sealed_header(&self) -> SealedBundleHeaderRef<'_, Number, Hash, DomainHeader, Balance> {
222223
match self {
223224
Bundle::V0(bundle) => SealedBundleHeaderRef::V0(&bundle.sealed_header),
224225
}
@@ -256,6 +257,7 @@ where
256257
pub fn execution_receipt_as_mut(
257258
&mut self,
258259
) -> ExecutionReceiptMutRef<
260+
'_,
259261
Number,
260262
Hash,
261263
HeaderNumberFor<DomainHeader>,

crates/sp-domains/src/execution_receipt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ where
299299
/// Returns the Execution receipt as a ref.
300300
pub fn as_execution_receipt_ref(
301301
&self,
302-
) -> ExecutionReceiptRef<Number, Hash, DomainNumber, DomainHash, Balance> {
302+
) -> ExecutionReceiptRef<'_, Number, Hash, DomainNumber, DomainHash, Balance> {
303303
let ExecutionReceipt::V0(receipt) = self;
304304
ExecutionReceiptRef::V0(receipt)
305305
}

crates/sp-subspace-mmr/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Primitives for Subspace MMR.
22
33
#![cfg_attr(not(feature = "std"), no_std)]
4-
#![feature(result_flattening)]
54

65
#[cfg(all(feature = "std", feature = "runtime-benchmarks"))]
76
pub mod benchmarking;

crates/subspace-archiving/src/archiver.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -700,11 +700,14 @@ impl Archiver {
700700
for record_offset in 0..RawRecord::NUM_CHUNKS {
701701
// Collect chunks of each record at the same offset
702702
raw_record_shards
703-
.array_chunks::<{ RawRecord::SIZE }>()
703+
.as_chunks::<{ RawRecord::SIZE }>()
704+
.0
705+
.iter()
704706
.map(|record_bytes| {
705707
record_bytes
706-
.array_chunks::<{ ScalarBytes::SAFE_BYTES }>()
707-
.nth(record_offset)
708+
.as_chunks::<{ ScalarBytes::SAFE_BYTES }>()
709+
.0
710+
.get(record_offset)
708711
.expect("Statically known to exist in a record; qed")
709712
})
710713
.map(Scalar::from)

0 commit comments

Comments
 (0)