Add send
feature flag
#72
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 271 in src/monitor.rs
github-actions / clippy
this `impl` can be derived
warning: this `impl` can be derived
--> src/monitor.rs:267:1
|
267 | / impl Default for EventType {
268 | | fn default() -> Self {
269 | | EventType::Unknown
270 | | }
271 | | }
| |_^
|
= 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...
|
247 + #[derive(Default)]
248 | pub enum EventType {
|
help: ...and mark the default variant
|
264 ~ #[default]
265 ~ Unknown,
|
Check warning on line 230 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:230:6
|
230 | 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
|
230 - impl<'a> Iterator for SocketIter<'a> {
230 + impl Iterator for SocketIter<'_> {
|
Check warning on line 188 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:188:25
|
188 | 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 51 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:51:6
|
51 | 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
|
51 - impl<'a> Entry<'a> {
51 + impl Entry<'_> {
|
Check warning on line 192 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:192:6
|
192 | 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
|
192 - impl<'a> Iterator for Devices<'a> {
192 + impl Iterator for Devices<'_> {
|
Check warning on line 326 in src/device.rs
github-actions / clippy
redundant closure
warning: redundant closure
--> src/device.rs:326:18
|
326 | .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