Skip to content

Commit fcdd144

Browse files
authored
Merge pull request #1960 from input-output-hk/dlachaume/stabilize-lint-reasons
Fix: hydra CI error when `allow` lint attribute specifies a reason
2 parents e4e7404 + 69fc137 commit fcdd144

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.58"
3+
version = "0.4.59"
44
description = "Common types, interfaces, and utilities for Mithril nodes."
55
authors = { workspace = true }
66
edition = { workspace = true }

mithril-common/src/logging.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ mod tests {
2626
use slog::info;
2727

2828
struct TestStruct;
29-
#[allow(
30-
dead_code,
31-
reason = "A field is needed to add the lifetime but is unused"
32-
)]
29+
// The `allow(dead_code)` is used because a field is needed to add the lifetime but is unused.
30+
#[allow(dead_code)]
3331
struct TestStructWithLifetime<'a>(&'a str);
3432
enum TestEnum {}
3533

0 commit comments

Comments
 (0)