Skip to content

Commit b24805b

Browse files
authored
fix(general): Update rust to 1.89 and rust-ci to 3.5.10 (#501)
* fix: bump rustci from 3.5.7 to 3.5.10 Signed-off-by: bkioshn <bkioshn@gmail.com> * fix: bump rust from 1.88 to 1.89 Signed-off-by: bkioshn <bkioshn@gmail.com> * fix: allow explicit_deref_methods Signed-off-by: bkioshn <bkioshn@gmail.com> --------- Signed-off-by: bkioshn <bkioshn@gmail.com>
1 parent 74fefc0 commit b24805b

File tree

14 files changed

+16
-8
lines changed

14 files changed

+16
-8
lines changed

rust/Earthfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VERSION 0.8
22

3-
IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust:v3.5.7 AS rust-ci
3+
IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust:v3.5.10 AS rust-ci
44
IMPORT ../ AS repo-ci
55

66
COPY_SRC:

rust/c509-certificate/Earthfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VERSION 0.8
22

3-
IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust::v3.5.7 AS rust-ci
3+
IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust::v3.5.10 AS rust-ci
44

55
IMPORT .. AS rust-local
66
IMPORT ../.. AS repo

rust/cardano-chain-follower/src/mithril_snapshot_config.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,9 +452,8 @@ fn check_writable(path: &Path) -> bool {
452452
}
453453

454454
// Can't read the directory for any reason, so can't write to the directory.
455-
let path_iterator = match path.read_dir() {
456-
Err(_) => return false,
457-
Ok(entries) => entries,
455+
let Ok(path_iterator) = path.read_dir() else {
456+
return false;
458457
};
459458

460459
// Recursively check the contents of the directory

rust/catalyst-voting/benches/vote_protocol.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
missing_docs,
99
clippy::missing_docs_in_private_items,
1010
clippy::unwrap_used,
11-
clippy::similar_names
11+
clippy::similar_names,
12+
clippy::explicit_deref_methods
1213
)]
1314

1415
use catalyst_voting::{

rust/catalyst-voting/src/crypto/babystep_giantstep.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ impl BabyStepGiantStep {
101101
}
102102

103103
#[cfg(test)]
104+
#[allow(clippy::explicit_deref_methods)]
104105
mod tests {
105106
use std::ops::Mul;
106107

rust/catalyst-voting/src/crypto/zk_unit_vector/decoding.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ impl ResponseRandomness {
155155
}
156156

157157
#[cfg(test)]
158+
#[allow(clippy::explicit_deref_methods)]
158159
mod tests {
159160
use test_strategy::proptest;
160161

rust/catalyst-voting/src/crypto/zk_unit_vector/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ mod arbitrary_impl {
285285
}
286286

287287
#[cfg(test)]
288+
#[allow(clippy::explicit_deref_methods)]
288289
mod tests {
289290
use proptest::sample::size_range;
290291
use rand_core::OsRng;

rust/catalyst-voting/src/vote_protocol/voter/decoding.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ impl VoterProof {
8484
}
8585

8686
#[cfg(test)]
87+
#[allow(clippy::explicit_deref_methods)]
8788
mod tests {
8889
use std::io::Cursor;
8990

rust/catalyst-voting/tests/voting_test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! A general voting integration test, which performs a full voting procedure.
2+
#![allow(clippy::explicit_deref_methods)]
23

34
use catalyst_voting::vote_protocol::{
45
committee::ElectionSecretKey,

rust/rbac-registration/src/cardano/cip509/validation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ pub fn validate_stake_public_key(
127127
let context = "Cip509 stake public key validation";
128128

129129
let transaction = MultiEraTx::Conway(Box::new(Cow::Borrowed(transaction)));
130-
let witness = match TxnWitness::new(&[transaction.clone()]) {
130+
let witness = match TxnWitness::new(std::slice::from_ref(&transaction)) {
131131
Ok(w) => w,
132132
Err(e) => {
133133
report.other(&format!("Failed to create TxWitness: {e:?}"), context);

0 commit comments

Comments
 (0)