Add sync
feature flag
#77
clippy
6 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 6 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.84.0 (9fc6b4312 2025-01-07)
- cargo 1.84.0 (66221abde 2024-11-19)
- clippy 0.1.84 (9fc6b43126 2025-01-07)
Annotations
Check warning on line 273 in src/monitor.rs
github-actions / clippy
this `impl` can be derived
warning: this `impl` can be derived
--> src/monitor.rs:269:1
|
269 | / impl Default for EventType {
270 | | fn default() -> Self {
271 | | EventType::Unknown
272 | | }
273 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
= note: `#[warn(clippy::derivable_impls)]` on by default
= help: remove the manual implementation...
help: ...and instead derive it...
|
249 + #[derive(Default)]
250 | pub enum EventType {
|
help: ...and mark the default variant
|
266 ~ #[default]
267 ~ Unknown,
|
Check warning on line 232 in src/monitor.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/monitor.rs:232:6
|
232 | impl<'a> Iterator for SocketIter<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
232 - impl<'a> Iterator for SocketIter<'a> {
232 + impl Iterator for SocketIter<'_> {
|
Check warning on line 190 in src/monitor.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/monitor.rs:190:25
|
190 | SocketIter::new(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
Check warning on line 53 in src/list.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/list.rs:53:6
|
53 | impl<'a> Entry<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
53 - impl<'a> Entry<'a> {
53 + impl Entry<'_> {
|
Check warning on line 194 in src/enumerator.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/enumerator.rs:194:6
|
194 | impl<'a> Iterator for Devices<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
194 - impl<'a> Iterator for Devices<'a> {
194 + impl Iterator for Devices<'_> {
|
Check warning on line 328 in src/device.rs
github-actions / clippy
redundant closure
warning: redundant closure
--> src/device.rs:328:18
|
328 | .map(|path| Path::new(path))
| ^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Path::new`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `#[warn(clippy::redundant_closure)]` on by default