Skip to content

Commit 379fbd1

Browse files
authored
Merge pull request #2148 from input-output-hk/djo/2147/rust_1.83
Fix Rust 1.83 clippy warnings
2 parents e38a254 + f399f24 commit 379fbd1

File tree

34 files changed

+64
-84
lines changed

34 files changed

+64
-84
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ As a minor extension, we have adopted a slightly different versioning convention
2222

2323
- Add a one line shell installation script for the Mithril nodes.
2424

25+
- Update to Rust `1.83`.
26+
2527
- **UNSTABLE** Cardano database incremental certification:
2628

2729
- Implement the new signed entity type `CardanoDatabase`.

Cargo.lock

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

internal/mithril-metric/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-metric"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
description = "Common tools to expose metrics."
55
authors = { workspace = true }
66
edition = { workspace = true }

internal/mithril-metric/src/helper.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,13 @@ macro_rules! build_metrics_service {
8888
}
8989

9090
#[cfg(test)]
91-
pub mod test_tools {
91+
pub(crate) mod test_tools {
9292
use std::{io, sync::Arc};
9393

9494
use slog::{Drain, Logger};
9595
use slog_async::Async;
9696
use slog_term::{CompactFormat, PlainDecorator};
97+
9798
pub struct TestLogger;
9899

99100
impl TestLogger {

internal/mithril-metric/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,3 @@ mod server;
1010
pub use metric::*;
1111
pub use server::MetricsServer;
1212
pub use server::MetricsServiceExporter;
13-
14-
#[cfg(test)]
15-
pub use helper::test_tools::TestLogger;

internal/mithril-persistence/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-persistence"
3-
version = "0.2.37"
3+
version = "0.2.38"
44
description = "Common types, interfaces, and utilities to persist data for Mithril nodes."
55
authors = { workspace = true }
66
edition = { workspace = true }

internal/mithril-persistence/src/database/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub use version_checker::{DatabaseVersionChecker, SqlMigration};
1717
pub type DbVersion = i64;
1818

1919
#[cfg(test)]
20-
pub mod test_helper {
20+
pub(crate) mod test_helper {
2121
use sqlite::ConnectionThreadSafe;
2222

2323
use mithril_common::StdResult;

internal/mithril-persistence/src/sqlite/condition.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,10 @@ mod tests {
362362

363363
#[test]
364364
fn expression_get_all_default() {
365-
impl GetAllCondition for String {}
365+
struct Expression;
366+
impl GetAllCondition for Expression {}
366367

367-
let expression = String::get_all_condition();
368+
let expression = Expression::get_all_condition();
368369
let (sql, params) = expression.expand();
369370

370371
assert_eq!("true".to_string(), sql);

internal/mithril-persistence/src/sqlite/cursor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ impl<'a, T> EntityCursor<'a, T> {
2020
}
2121
}
2222

23-
impl<'a, T> Iterator for EntityCursor<'a, T>
23+
impl<T> Iterator for EntityCursor<'_, T>
2424
where
2525
T: SqLiteEntity,
2626
{

mithril-aggregator/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-aggregator"
3-
version = "0.5.115"
3+
version = "0.5.116"
44
description = "A Mithril Aggregator server"
55
authors = { workspace = true }
66
edition = { workspace = true }

0 commit comments

Comments
 (0)