[0.26.0] Extend LoggerHandle::reopen to all writers #127
GitHub Actions / clippy
failed
Sep 1, 2023 in 0s
clippy
4 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 4 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.74.0-nightly (2f5df8a94 2023-08-31)
- cargo 1.74.0-nightly (96fe1c9e1 2023-08-29)
- clippy 0.1.74 (2f5df8a 2023-08-31)
Annotations
Check failure on line 406 in src/writers/syslog_writer.rs
github-actions / clippy
matching over `()` is more explicit
error: matching over `()` is more explicit
--> src/writers/syslog_writer.rs:406:70
|
406 | w.write(buf).and_then(|sz| w.write_all(&[0; 1]).map(|_| sz))
| ^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
Check failure on line 180 in src/writers/file_log_writer/state_handle.rs
github-actions / clippy
matching over `()` is more explicit
error: matching over `()` is more explicit
--> src/writers/file_log_writer/state_handle.rs:180:49
|
180 | state.write_buffer(buffer).map(|_| buffer.len())
| ^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
note: the lint level is defined here
--> src/lib.rs:5:9
|
5 | #![deny(clippy::pedantic)]
| ^^^^^^^^^^^^^^^^
= note: `#[deny(clippy::ignored_unit_patterns)]` implied by `#[deny(clippy::pedantic)]`
Check failure on line 406 in src/writers/syslog_writer.rs
github-actions / clippy
matching over `()` is more explicit
error: matching over `()` is more explicit
--> src/writers/syslog_writer.rs:406:70
|
406 | w.write(buf).and_then(|sz| w.write_all(&[0; 1]).map(|_| sz))
| ^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
Check failure on line 180 in src/writers/file_log_writer/state_handle.rs
github-actions / clippy
matching over `()` is more explicit
error: matching over `()` is more explicit
--> src/writers/file_log_writer/state_handle.rs:180:49
|
180 | state.write_buffer(buffer).map(|_| buffer.len())
| ^ help: use `()` instead of `_`: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ignored_unit_patterns
note: the lint level is defined here
--> src/lib.rs:5:9
|
5 | #![deny(clippy::pedantic)]
| ^^^^^^^^^^^^^^^^
= note: `#[deny(clippy::ignored_unit_patterns)]` implied by `#[deny(clippy::pedantic)]`