fix: allow parsing FORMAT/anc as Float/f32 #1253
conventional-prs.yml
on: pull_request_target
title-format
4s
Annotations
6 warnings
using `clone` on type `SvRecord` which implements the `Copy` trait:
src/strucvars/query/clinvar.rs#L46
warning: using `clone` on type `SvRecord` which implements the `Copy` trait
--> src/strucvars/query/clinvar.rs:46:22
|
46 | .map(|e| self.records[chrom_idx][*e.data() as usize].clone())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.records[chrom_idx][*e.data() as usize]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
= note: `#[warn(clippy::clone_on_copy)]` on by default
|
field `n_total` is never read:
src/strucvars/txt_to_bin/vardbs/input.rs#L150
warning: field `n_total` is never read
--> src/strucvars/txt_to_bin/vardbs/input.rs:150:9
|
140 | pub struct GnomadCnv4Record {
| ---------------- field in this struct
...
150 | pub n_total: u32,
| ^^^^^^^
|
= note: `GnomadCnv4Record` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
fields `male_n_homref`, `male_n_hemiref`, `female_n_homref`, and `cnv_n_total` are never read:
src/strucvars/txt_to_bin/vardbs/input.rs#L117
warning: fields `male_n_homref`, `male_n_hemiref`, `female_n_homref`, and `cnv_n_total` are never read
--> src/strucvars/txt_to_bin/vardbs/input.rs:117:9
|
107 | pub struct GnomadSv4Record {
| --------------- fields in this struct
...
117 | pub male_n_homref: u32,
| ^^^^^^^^^^^^^
...
123 | pub male_n_hemiref: u32,
| ^^^^^^^^^^^^^^
...
127 | pub female_n_homref: u32,
| ^^^^^^^^^^^^^^^
...
133 | pub cnv_n_total: u32,
| ^^^^^^^^^^^
|
= note: `GnomadSv4Record` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
field `num_carriers` is never read:
src/strucvars/txt_to_bin/vardbs/input.rs#L20
warning: field `num_carriers` is never read
--> src/strucvars/txt_to_bin/vardbs/input.rs:20:9
|
12 | pub struct DbVarRecord {
| ----------- field in this struct
...
20 | pub num_carriers: u32,
| ^^^^^^^^^^^^
|
= note: `DbVarRecord` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
field `label` is never read:
src/strucvars/txt_to_bin/masked.rs#L28
warning: field `label` is never read
--> src/strucvars/txt_to_bin/masked.rs:28:13
|
20 | pub struct Record {
| ------ field in this struct
...
28 | pub label: String,
| ^^^^^
|
= note: `Record` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
|
use of deprecated method `itertools::Itertools::group_by`: Use .chunk_by() instead:
src/seqvars/query/mod.rs#L297
warning: use of deprecated method `itertools::Itertools::group_by`: Use .chunk_by() instead
--> src/seqvars/query/mod.rs:297:14
|
297 | .group_by(|by_hgnc_id| by_hgnc_id.hgnc_id.clone())
| ^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
|