Fix Rust 1.83 Clippy lints (#6629)

* Fix Rust 1.83 Clippy lints

* Cargo fmt
This commit is contained in:
Michael Sproul
2024-11-29 13:23:54 +11:00
committed by GitHub
parent 38f5f665e1
commit fa6c4c02a3
35 changed files with 73 additions and 77 deletions

View File

@@ -105,7 +105,7 @@ impl<'a> AlignedRecordDecorator<'a> {
}
}
impl<'a> Write for AlignedRecordDecorator<'a> {
impl Write for AlignedRecordDecorator<'_> {
fn write(&mut self, buf: &[u8]) -> Result<usize> {
if buf.iter().any(u8::is_ascii_control) {
let filtered = buf
@@ -124,7 +124,7 @@ impl<'a> Write for AlignedRecordDecorator<'a> {
}
}
impl<'a> slog_term::RecordDecorator for AlignedRecordDecorator<'a> {
impl slog_term::RecordDecorator for AlignedRecordDecorator<'_> {
fn reset(&mut self) -> Result<()> {
self.message_active = false;
self.message_count = 0;