Skip to content

Commit 07a5074

Browse files
authored
Merge pull request #3522 from dusk-network/upgrade-rust-toolchain
Upgrade rust toolchain
2 parents 6f50892 + 0a509ff commit 07a5074

Some content is hidden

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

42 files changed

+78
-91
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ jubjub-schnorr = { version = "0.6", default-features = false }
7272
kadcast = "0.7"
7373
phoenix-circuits = { version = "0.6", default-features = false }
7474
phoenix-core = { version = "0.34.0", default-features = false }
75-
piecrust = "0.28.1"
76-
piecrust-uplink = "0.18.0"
75+
piecrust = "0.29.0-rc.0"
76+
piecrust-uplink = "0.19.0-rc.0"
7777
poseidon-merkle = "0.8"
7878

7979
# External dependencies

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ rusk-wallet: ## build the rusk wallet binary
9797
web-wallet: ## build the static files of the web wallet
9898
$(MAKE) -C ./web-wallet all
9999

100-
COMPILER_VERSION=v0.2.0
100+
COMPILER_VERSION=v0.3.0-rc
101101
setup-compiler: ## Setup the Dusk Contract Compiler
102102
@./scripts/setup-compiler.sh $(COMPILER_VERSION)
103103

consensus/src/aggregator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl<V: StepVote> Aggregator<V> {
7575

7676
self.votes
7777
.get(&(msg_step, *vote))
78-
.map_or(false, |(_, cluster)| cluster.contains_key(signer))
78+
.is_some_and(|(_, cluster)| cluster.contains_key(signer))
7979
}
8080

8181
pub fn collect_vote(

consensus/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
#![deny(unused_crate_dependencies)]
88
#![deny(unused_extern_crates)]
9-
#![feature(lazy_cell)]
109

1110
pub mod commons;
1211
pub mod consensus;

consensus/src/quorum/verifiers.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub async fn verify_step_votes(
4343

4444
// Verify the aggregated signature is valid and reach the quorum threshold
4545
let voters = verify_quorum_votes(ch, step, vote, step_votes, &committee)
46-
.map_err(|e| {
46+
.inspect_err(|e| {
4747
error!(
4848
event = "Invalid StepVotes",
4949
reason = %e,
@@ -54,8 +54,6 @@ pub async fn verify_step_votes(
5454
seed = to_str(seed.inner()),
5555
?step_votes
5656
);
57-
58-
e
5957
})?;
6058

6159
Ok(voters)

consensus/src/user/provisioners.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ impl<'a> CommitteeGenerator<'a> {
277277
fn new(
278278
provisioners: &'a Provisioners,
279279
round: u64,
280-
exclusion_list: &Vec<PublicKeyBytes>,
280+
exclusion_list: &[PublicKeyBytes],
281281
) -> Self {
282282
// Get provisioners eligible at round `round`
283283
let eligible_set: Vec<_> = provisioners

contracts/stake/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ wasm: ## Generate the optimized WASM for the contract given
2525
--target wasm32-unknown-unknown
2626

2727
clippy: ## Run clippy
28-
@cargo clippy --all-features --release -- -D warnings
29-
@cargo clippy -Z build-std=core,alloc --release --target wasm32-unknown-unknown -- -D warnings
28+
@cargo +dusk clippy --all-features --release -- -D warnings
29+
@cargo +dusk clippy -Z build-std=core,alloc --release --target wasm32-unknown-unknown -- -D warnings
3030

3131
doc: ## Run doc gen
3232
@cargo doc --release

contracts/transfer/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ wasm: ## Build the WASM files
2525
--target wasm64-unknown-unknown
2626

2727
clippy: ## Run clippy
28-
@cargo clippy --all-features --release -- -D warnings
29-
@cargo clippy -Z build-std=core,alloc --release --target wasm32-unknown-unknown -- -D warnings
28+
@cargo +dusk clippy --all-features --release -- -D warnings
29+
@cargo +dusk clippy -Z build-std=core,alloc --release --target wasm32-unknown-unknown -- -D warnings
3030

3131
doc: ## Run doc gen
3232
@cargo doc --release

contracts/transfer/src/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use dusk_core::Error as ExecutionError;
99

1010
#[derive(Debug, Clone)]
1111
pub enum Error {
12+
#[allow(dead_code)]
1213
/// Wrapper of dusk-core error type.
1314
Execution(ExecutionError),
1415
/// A contract balance is not sufficient for the requested withdrawal

0 commit comments

Comments
 (0)