Skip to content

Commit 303d8c4

Browse files
authored
Merge pull request #1857 from input-output-hk/jpraynaud/fix-clippy-warnings-rust-1.80
fix: clippy warnings with Rust `1.80.0`
2 parents 3b6557b + 500a765 commit 303d8c4

File tree

15 files changed

+26
-24
lines changed

15 files changed

+26
-24
lines changed

Cargo.lock

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

internal/mithril-build-script/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mithril-build-script"
3-
version = "0.2.6"
3+
version = "0.2.7"
44
description = "A toolbox for Mithril crates build scripts"
55
authors = { workspace = true }
66
edition = { workspace = true }

internal/mithril-build-script/src/fake_aggregator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl FakeAggregatorData {
3636

3737
for entry in list_json_files_in_folder(folder) {
3838
let filename = entry.file_name().to_string_lossy().to_string();
39-
let file_content = fs::read_to_string(&entry.path()).unwrap_or_else(|_| {
39+
let file_content = fs::read_to_string(entry.path()).unwrap_or_else(|_| {
4040
panic!(
4141
"Could not read file content, file_path: {}",
4242
entry.path().display()

mithril-client-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mithril-client-cli"
3-
version = "0.9.7"
3+
version = "0.9.8"
44
description = "A Mithril Client"
55
authors = { workspace = true }
66
edition = { workspace = true }

mithril-client-cli/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//! * Cardano DB: List, Show, download and verify
66
//! * Mithril Stake Distribution: List, download and verify
77
//
8-
//! You can find more information on how it works reading the [documentation website](https://mithril.network/doc/mithril/mithril-network/client).
8+
//! You can find more information on how it works reading the [documentation website](https://mithril.network/doc/mithril/mithril-network/client).
99
1010
pub mod commands;
1111
mod configuration;

mithril-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mithril-client"
3-
version = "0.8.8"
3+
version = "0.8.9"
44
description = "Mithril client library"
55
authors = { workspace = true }
66
edition = { workspace = true }

mithril-client/src/cardano_transaction_client.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
//!
33
//! In order to do so it defines a [CardanoTransactionClient] which exposes the following features:
44
//! - [get_proofs][CardanoTransactionClient::get_proofs]: get a [cryptographic proof][CardanoTransactionsProofs]
5-
//! that the transactions with given hash are included in the global Cardano transactions set.
5+
//! that the transactions with given hash are included in the global Cardano transactions set.
66
//! - [get][CardanoTransactionClient::get_snapshot]: get a [Cardano transaction snapshot][CardanoTransactionSnapshot]
7-
//! data from its hash.
7+
//! data from its hash.
88
//! - [list][CardanoTransactionClient::list_snapshots]: get the list of the latest available Cardano transaction
9-
//! snapshot.
9+
//! snapshot.
1010
//!
1111
//! **Important:** Verifying a proof **only** means that its cryptography is valid, in order to certify that a Cardano
1212
//! transactions subset is valid, the associated proof must be tied to a valid Mithril certificate (see the example below).

mithril-client/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//! - [Snapshot][snapshot_client] list, get, download tarball and record statistics.
1010
//! - [Mithril stake distribution][mithril_stake_distribution_client] list and get.
1111
//! - [Cardano transactions][cardano_transaction_client] list & get snapshot, get proofs
12-
//! _(available using crate feature_ **unstable**_)_.
12+
//! _(available using crate feature_ **unstable**_)_.
1313
//! - [Certificates][certificate_client] list, get, and chain validation.
1414
//!
1515
//! The [Client] aggregates the queries of all of those types.

mithril-common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mithril-common"
3-
version = "0.4.35"
3+
version = "0.4.36"
44
description = "Common types, interfaces, and utilities for Mithril nodes."
55
authors = { workspace = true }
66
edition = { workspace = true }

mithril-common/src/entities/certificate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl Certificate {
104104
}
105105
CertificateSignature::MultiSignature(signed_entity_type, signature) => {
106106
signed_entity_type.feed_hash(&mut hasher);
107-
hasher.update(&signature.to_json_hex().unwrap());
107+
hasher.update(signature.to_json_hex().unwrap());
108108
}
109109
};
110110
hex::encode(hasher.finalize())

0 commit comments

Comments
 (0)