Skip to content

Commit

Permalink
Merge pull request input-output-hk#1493 from input-output-hk/ensemble…
Browse files Browse the repository at this point in the history
…/rust_1-76

Fix clippy lints from rust 1.76
  • Loading branch information
Alenar authored Feb 8, 2024
2 parents 6cd739a + 00c59a1 commit 4c19373
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mithril-common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mithril-common"
version = "0.2.162"
version = "0.2.163"
description = "Common types, interfaces, and utilities for Mithril nodes."
authors = { workspace = true }
edition = { workspace = true }
Expand Down
12 changes: 6 additions & 6 deletions mithril-common/src/chain_observer/cli_observer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,8 @@ mod tests {
#[tokio::test]
async fn test_cli_testnet_runner() {
let runner = CardanoCliRunner::new(
PathBuf::new().join("cardano-cli"),
PathBuf::new().join("/tmp/whatever.sock"),
PathBuf::from("cardano-cli"),
PathBuf::from("/tmp/whatever.sock"),
CardanoNetwork::TestNet(10),
);

Expand All @@ -504,8 +504,8 @@ mod tests {
#[tokio::test]
async fn test_cli_devnet_runner() {
let runner = CardanoCliRunner::new(
PathBuf::new().join("cardano-cli"),
PathBuf::new().join("/tmp/whatever.sock"),
PathBuf::from("cardano-cli"),
PathBuf::from("/tmp/whatever.sock"),
CardanoNetwork::DevNet(25),
);

Expand All @@ -516,8 +516,8 @@ mod tests {
#[tokio::test]
async fn test_cli_mainnet_runner() {
let runner = CardanoCliRunner::new(
PathBuf::new().join("cardano-cli"),
PathBuf::new().join("/tmp/whatever.sock"),
PathBuf::from("cardano-cli"),
PathBuf::from("/tmp/whatever.sock"),
CardanoNetwork::MainNet,
);

Expand Down
2 changes: 1 addition & 1 deletion mithril-common/src/signable_builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ cfg_fs! {
pub use cardano_transactions::*;
}

#[cfg(test)]
#[cfg(all(test, feature = "fs"))]
pub use cardano_transactions::MockTransactionStore;
2 changes: 1 addition & 1 deletion mithril-stm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mithril-stm"
version = "0.3.14"
version = "0.3.15"
edition = { workspace = true }
authors = { workspace = true }
homepage = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion mithril-stm/src/merkle_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ impl<D: Clone + Digest> MerkleTreeCommitmentBatchCompat<D> {
// todo: Maybe we want more granular errors, rather than only `BatchPathInvalid`
pub fn check(
&self,
batch_val: &Vec<MTLeaf>,
batch_val: &[MTLeaf],
proof: &BatchPath<D>,
) -> Result<(), MerkleTreeError<D>>
where
Expand Down

0 comments on commit 4c19373

Please sign in to comment.