clippy
4 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 4 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.80.0 (051478957 2024-07-21)
- cargo 1.80.0 (376290515 2024-07-16)
- clippy 0.1.80 (0514789 2024-07-21)
Annotations
Check warning on line 9 in py-deepbiop/src/lib.rs
github-actions / clippy
use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument
warning: use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument
--> py-deepbiop/src/lib.rs:9:26
|
9 | fn deepbiop(_py: Python, m: &PyModule) -> PyResult<()> {
| ^
|
= note: `#[warn(deprecated)]` on by default
Check warning on line 143 in crates/deepbiop-fq/src/kmer.rs
github-actions / clippy
very complex type used. Consider factoring parts into `type` definitions
warning: very complex type used. Consider factoring parts into `type` definitions
--> crates/deepbiop-fq/src/kmer.rs:143:6
|
143 | ) -> Result<Vec<(&[u8], (usize, usize))>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
= note: `#[warn(clippy::type_complexity)]` on by default
Check warning on line 58 in crates/deepbiop-fq/src/encode/triat.rs
github-actions / clippy
a `Vec` of `Range` that is only one element
warning: a `Vec` of `Range` that is only one element
--> crates/deepbiop-fq/src/encode/triat.rs:58:16
|
58 | Ok(vec![0..0])
| ^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_range_in_vec_init
help: if you wanted a `Vec` that contains the entire range, try
|
58 | Ok((0..0).collect::<std::vec::Vec<usize>>())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
help: if you wanted a `Vec` of len 0, try
|
58 | Ok(vec![0; 0])
| ~~~~
Check warning on line 36 in crates/deepbiop-fq/src/encode/triat.rs
github-actions / clippy
a `Vec` of `Range` that is only one element
warning: a `Vec` of `Range` that is only one element
--> crates/deepbiop-fq/src/encode/triat.rs:36:23
|
36 | return Ok(vec![0..0]);
| ^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_range_in_vec_init
= note: `#[warn(clippy::single_range_in_vec_init)]` on by default
help: if you wanted a `Vec` that contains the entire range, try
|
36 | return Ok((0..0).collect::<std::vec::Vec<usize>>());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
help: if you wanted a `Vec` of len 0, try
|
36 | return Ok(vec![0; 0]);
| ~~~~