Bump version to 0.9.0 #62
GitHub Actions / clippy
succeeded
Jul 17, 2024 in 0s
clippy
3 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 3 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.79.0 (129f3b996 2024-06-10)
- cargo 1.79.0 (ffa9cf99a 2024-06-03)
- clippy 0.1.79 (129f3b9 2024-06-10)
Annotations
Check warning on line 244 in src/monitor.rs
github-actions / clippy
this `impl` can be derived
warning: this `impl` can be derived
--> src/monitor.rs:240:1
|
240 | / impl Default for EventType {
241 | | fn default() -> Self {
242 | | EventType::Unknown
243 | | }
244 | | }
| |_^
|
= 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...
|
220 + #[derive(Default)]
221 | pub enum EventType {
|
help: ...and mark the default variant
|
237 ~ #[default]
238 ~ Unknown,
|
Check warning on line 161 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:161:25
|
161 | 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 323 in src/device.rs
github-actions / clippy
redundant closure
warning: redundant closure
--> src/device.rs:323:18
|
323 | .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
Loading