Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rust/Earthfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VERSION 0.8

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

COPY_SRC:
Expand Down
2 changes: 1 addition & 1 deletion rust/c509-certificate/Earthfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VERSION 0.8

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

IMPORT .. AS rust-local
IMPORT ../.. AS repo
Expand Down
5 changes: 2 additions & 3 deletions rust/cardano-chain-follower/src/mithril_snapshot_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,8 @@ fn check_writable(path: &Path) -> bool {
}

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

// Recursively check the contents of the directory
Expand Down
3 changes: 2 additions & 1 deletion rust/catalyst-voting/benches/vote_protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
missing_docs,
clippy::missing_docs_in_private_items,
clippy::unwrap_used,
clippy::similar_names
clippy::similar_names,
clippy::explicit_deref_methods
)]

use catalyst_voting::{
Expand Down
1 change: 1 addition & 0 deletions rust/catalyst-voting/src/crypto/babystep_giantstep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ impl BabyStepGiantStep {
}

#[cfg(test)]
#[allow(clippy::explicit_deref_methods)]
mod tests {
use std::ops::Mul;

Expand Down
1 change: 1 addition & 0 deletions rust/catalyst-voting/src/crypto/zk_unit_vector/decoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ impl ResponseRandomness {
}

#[cfg(test)]
#[allow(clippy::explicit_deref_methods)]
mod tests {
use test_strategy::proptest;

Expand Down
1 change: 1 addition & 0 deletions rust/catalyst-voting/src/crypto/zk_unit_vector/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ mod arbitrary_impl {
}

#[cfg(test)]
#[allow(clippy::explicit_deref_methods)]
mod tests {
use proptest::sample::size_range;
use rand_core::OsRng;
Expand Down
1 change: 1 addition & 0 deletions rust/catalyst-voting/src/vote_protocol/voter/decoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ impl VoterProof {
}

#[cfg(test)]
#[allow(clippy::explicit_deref_methods)]
mod tests {
use std::io::Cursor;

Expand Down
1 change: 1 addition & 0 deletions rust/catalyst-voting/tests/voting_test.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//! A general voting integration test, which performs a full voting procedure.
#![allow(clippy::explicit_deref_methods)]

use catalyst_voting::vote_protocol::{
committee::ElectionSecretKey,
Expand Down
2 changes: 1 addition & 1 deletion rust/rbac-registration/src/cardano/cip509/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pub fn validate_stake_public_key(
let context = "Cip509 stake public key validation";

let transaction = MultiEraTx::Conway(Box::new(Cow::Borrowed(transaction)));
let witness = match TxnWitness::new(&[transaction.clone()]) {
let witness = match TxnWitness::new(std::slice::from_ref(&transaction)) {
Ok(w) => w,
Err(e) => {
report.other(&format!("Failed to create TxWitness: {e:?}"), context);
Expand Down
2 changes: 1 addition & 1 deletion rust/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.88"
channel = "1.89"
profile = "default"
1 change: 1 addition & 0 deletions rust/vote-tx-v1/src/decoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ impl Tx {
}

#[cfg(test)]
#[allow(clippy::explicit_deref_methods)]
mod tests {
use catalyst_voting::{
crypto::{ed25519::PrivateKey, rng::rand_core::OsRng},
Expand Down
1 change: 1 addition & 0 deletions rust/vote-tx-v1/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ impl VotePayload {
}

#[cfg(test)]
#[allow(clippy::explicit_deref_methods)]
mod tests {
use catalyst_voting::{
crypto::ed25519::PrivateKey, vote_protocol::committee::ElectionSecretKey,
Expand Down
1 change: 1 addition & 0 deletions rust/vote-tx-v2/src/gen_tx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ fn cose_protected_header() -> coset::Header {
.build()
}

#[allow(clippy::explicit_deref_methods)]
#[cfg(test)]
mod tests {
use proptest::{prelude::any_with, sample::size_range};
Expand Down
Loading