udev: Export mio06 crate as mio #78
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 269 in src/monitor.rs
github-actions / clippy
this `impl` can be derived
warning: this `impl` can be derived
--> src/monitor.rs:265:1
|
265 | / impl Default for EventType {
266 | | fn default() -> Self {
267 | | EventType::Unknown
268 | | }
269 | | }
| |_^
|
= 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...
|
245 + #[derive(Default)]
246 | pub enum EventType {
|
help: ...and mark the default variant
|
262 ~ #[default]
263 ~ Unknown,
|
Check warning on line 228 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:228:6
|
228 | 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
|
228 - impl<'a> Iterator for SocketIter<'a> {
228 + impl Iterator for SocketIter<'_> {
|
Check warning on line 186 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:186:25
|
186 | 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