Skip to content

feat!: refactory query schema to use protobuf (#374) #1279

feat!: refactory query schema to use protobuf (#374)

feat!: refactory query schema to use protobuf (#374) #1279

GitHub Actions / clippy succeeded Aug 5, 2024 in 0s

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 46 in src/strucvars/query/clinvar.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `SvRecord` which implements the `Copy` trait

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

Check warning on line 82 in src/strucvars/aggregate/cli.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
  --> src/strucvars/aggregate/cli.rs:82:23
   |
82 |             to_writer(&mut tmp_file, &input_record)?;
   |                       ^^^^^^^^^^^^^ help: change this to: `tmp_file`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

Check warning on line 221 in src/seqvars/aggregate/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> src/seqvars/aggregate/mod.rs:221:52
    |
221 |                 .put_cf(&cf_carriers, key.clone(), &db_carrier_data.to_vec())
    |                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `db_carrier_data.to_vec()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args

Check warning on line 212 in src/seqvars/aggregate/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the borrowed expression implements the required traits

warning: the borrowed expression implements the required traits
   --> src/seqvars/aggregate/mod.rs:212:50
    |
212 |                 .put_cf(&cf_counts, key.clone(), &db_counts_data.to_vec())
    |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `db_counts_data.to_vec()`
    |
    = 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