Skip to content

update githib workflow #13

update githib workflow

update githib workflow #13

Triggered via push September 9, 2024 16:24
Status Success
Total duration 36s
Artifacts

clippy.yml

on: push
clippy_check
26s
clippy_check
Fit to window
Zoom out
Zoom in

Annotations

15 warnings
unused `std::result::Result` that must be used: src/multisketch.rs#L210
warning: unused `std::result::Result` that must be used --> src/multisketch.rs:210:9 | 210 | self.save_metadata(output_file_name); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this `Result` may be an `Err` variant, which should be handled help: use `let _ = ...` to ignore the resulting value | 210 | let _ = self.save_metadata(output_file_name); | +++++++
unused `std::result::Result` that must be used: src/lib.rs#L509
warning: unused `std::result::Result` that must be used --> src/lib.rs:509:13 | 509 | sketches.remove_metadata(ref_db, output_file, &ids); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this `Result` may be an `Err` variant, which should be handled = note: `#[warn(unused_must_use)]` on by default help: use `let _ = ...` to ignore the resulting value | 509 | let _ = sketches.remove_metadata(ref_db, output_file, &ids); | +++++++
`filter_map()` will run forever if the iterator repeatedly produces an `Err`: src/lib.rs#L500
warning: `filter_map()` will run forever if the iterator repeatedly produces an `Err` --> src/lib.rs:500:51 | 500 | let ids: Vec<String> = reader.lines().filter_map(|line| line.ok()).collect(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `map_while(Result::ok)` | note: this expression returning a `std::io::Lines` may produce an infinite number of `Err` in case of a read error --> src/lib.rs:500:36 | 500 | let ids: Vec<String> = reader.lines().filter_map(|line| line.ok()).collect(); | ^^^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#lines_filter_map_ok = note: `#[warn(clippy::lines_filter_map_ok)]` on by default
the borrowed expression implements the required traits: src/lib.rs#L496
warning: the borrowed expression implements the required traits --> src/lib.rs:496:35 | 496 | let file = File::open(&path)?; | ^^^^^ help: change this to: `path` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
non-canonical implementation of `partial_cmp` on an `Ord` type: src/distances.rs#L214
warning: non-canonical implementation of `partial_cmp` on an `Ord` type --> src/distances.rs:214:1 | 214 | / impl PartialOrd for SparseCoreAcc { 215 | | fn partial_cmp(&self, other: &Self) -> Option<Ordering> { | | _____________________________________________________________- 216 | || self.1.partial_cmp(&other.1) 217 | || } | ||_____- help: change this to: `{ Some(self.cmp(other)) }` 218 | | } | |__^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl
non-canonical implementation of `partial_cmp` on an `Ord` type: src/distances.rs#L188
warning: non-canonical implementation of `partial_cmp` on an `Ord` type --> src/distances.rs:188:1 | 188 | / impl PartialOrd for SparseJaccard { 189 | | fn partial_cmp(&self, other: &Self) -> Option<Ordering> { | | _____________________________________________________________- 190 | || other.1.partial_cmp(&self.1) // NB: backwards 191 | || } | ||_____- help: change this to: `{ Some(self.cmp(other)) }` 192 | | } | |__^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl = note: `#[warn(clippy::non_canonical_partial_ord_impl)]` on by default
this function has too many arguments (9/7): src/sketch.rs#L217
warning: this function has too many arguments (9/7) --> src/sketch.rs:217:1 | 217 | / pub fn sketch_files( 218 | | output_prefix: &str, 219 | | input_files: &[InputFastx], 220 | | concat_fasta: bool, ... | 226 | | min_qual: u8, 227 | | ) -> Vec<Sketch> { | |________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments = note: `#[warn(clippy::too_many_arguments)]` on by default
fields `bin_stride`, `kmer_stride`, and `sample_stride` are never read: src/sketch_datafile.rs#L11
warning: fields `bin_stride`, `kmer_stride`, and `sample_stride` are never read --> src/sketch_datafile.rs:11:5 | 10 | pub struct SketchArrayFile { | --------------- fields in this struct 11 | bin_stride: usize, | ^^^^^^^^^^ 12 | kmer_stride: usize, | ^^^^^^^^^^^ 13 | sample_stride: usize, | ^^^^^^^^^^^^^ | = note: `SketchArrayFile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default
unused variable: `input_prefix`: src/multisketch.rs#L196
warning: unused variable: `input_prefix` --> src/multisketch.rs:196:9 | 196 | input_prefix: &str, | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_input_prefix` | = note: `#[warn(unused_variables)]` on by default
clippy_check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
clippy_check
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
clippy_check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy_check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy_check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
clippy_check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/