Dev #22
Dev #22
clippy
5 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 5 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.83.0-nightly (363ae4188 2024-09-24)
- cargo 1.83.0-nightly (eaee77dc1 2024-09-19)
- clippy 0.1.82 (363ae41 2024-09-24)
Annotations
Check warning on line 166 in src/main.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/main.rs:166:32
|
166 | res.append(&mut sablast::map(&ref_contig, &sbwt, &lcs));
| ^^^^^^^^^^^ help: change this to: `ref_contig`
|
= 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 153 in src/main.rs
github-actions / clippy
unused variable: `num_threads`
warning: unused variable: `num_threads`
--> src/main.rs:153:6
|
153 | num_threads,
| ^^^^^^^^^^^ help: try ignoring the field: `num_threads: _`
|
= note: `#[warn(unused_variables)]` on by default
Check warning on line 141 in src/lib.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/lib.rs:141:45
|
141 | let aln = matches(ref_seq, &query_sbwt, &query_lcs);
| ^^^^^^^^^^ help: change this to: `query_lcs`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Check warning on line 141 in src/lib.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/lib.rs:141:32
|
141 | let aln = matches(ref_seq, &query_sbwt, &query_lcs);
| ^^^^^^^^^^^ help: change this to: `query_sbwt`
|
= 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 43 in src/format.rs
github-actions / clippy
writing `&Vec` instead of `&[_]` involves a new object where a slice will do
warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do
--> src/format.rs:43:16
|
43 | alignment: &Vec<char>,
| ^^^^^^^^^^ help: change this to: `&[char]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
= note: `#[warn(clippy::ptr_arg)]` on by default