Skip to content

Commit 24d5b0f

Browse files
OmegaJakTheJokr
authored andcommitted
Resolve Clippy lints from Rust 1.86 and 1.87
1 parent f4b0f6b commit 24d5b0f

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

foundations/src/telemetry/log/internal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl LoggerWithKvNestingTracking {
6565
None // avoid further nesting
6666
}
6767
}
68-
Self::MAX_NESTING..=u32::MAX => None, // avoid further nesting
68+
_ => None, // avoid further nesting
6969
}
7070
}
7171
}

foundations/src/telemetry/log/retry_writer.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,7 @@ impl Write for RetryPipeWriter {
6060
}
6161
attempts += 1;
6262
}
63-
Err(io::Error::new(
64-
io::ErrorKind::Other,
65-
"retry attempts exhausted",
66-
))
63+
Err(io::Error::other("retry attempts exhausted"))
6764
}
6865

6966
/// Flushes the file. On *nix this does nothing.

0 commit comments

Comments
 (0)