mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 10:11:44 +00:00
Fix Rust 1.83 Clippy lints (#6629)
* Fix Rust 1.83 Clippy lints * Cargo fmt
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user