Add inital version of ka3005p python package #182
clippy
6 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 6 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.77.2 (25ef9e3d8 2024-04-09)
- cargo 1.77.2 (e52e36006 2024-03-26)
- clippy 0.1.77 (25ef9e3 2024-04-09)
Annotations
Check failure on line 313 in src/lib.rs
github-actions / clippy
manual `RangeInclusive::contains` implementation
error: manual `RangeInclusive::contains` implementation
--> src/lib.rs:313:30
|
313 | .filter(|&b| b >= 32 && b <= 126)
| ^^^^^^^^^^^^^^^^^^^ help: use: `(32..=126).contains(&b)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains
= note: `#[deny(clippy::manual_range_contains)]` implied by `#[deny(warnings)]`
Check failure on line 116 in src/py_module.rs
github-actions / clippy
redundant closure
error: redundant closure
--> src/py_module.rs:116:22
|
116 | .map_err(|e| Into::<Ka3005pError>::into(e))?)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Into::<Ka3005pError>::into`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
Check failure on line 87 in src/py_module.rs
github-actions / clippy
redundant closure
error: redundant closure
--> src/py_module.rs:87:51
|
87 | inner: find_serial_port().map_err(|e| Into::<Ka3005pError>::into(e))?,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Into::<Ka3005pError>::into`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
Check failure on line 84 in src/py_module.rs
github-actions / clippy
redundant closure
error: redundant closure
--> src/py_module.rs:84:51
|
84 | inner: Ka3005p::new(port).map_err(|e| Into::<Ka3005pError>::into(e))?,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Into::<Ka3005pError>::into`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
Check failure on line 67 in src/py_module.rs
github-actions / clippy
redundant closure
error: redundant closure
--> src/py_module.rs:67:22
|
67 | .map_err(|e| Into::<Ka3005pError>::into(e))?)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Into::<Ka3005pError>::into`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
Check failure on line 56 in src/py_module.rs
github-actions / clippy
redundant closure
error: redundant closure
--> src/py_module.rs:56:22
|
56 | .map_err(|e| Into::<Ka3005pError>::into(e))?)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `Into::<Ka3005pError>::into`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
note: the lint level is defined here
--> src/lib.rs:30:9
|
30 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(clippy::redundant_closure)]` implied by `#[deny(warnings)]`