chore: switch docker base image to ubuntu noble, use system rocksdb for faster compilation #833
conventional-prs.yml
on: pull_request_target
title-format
7s
Annotations
3 warnings
this `match` can be collapsed into the outer `if let`:
src/server/run/mod.rs#L426
warning: this `match` can be collapsed into the outer `if let`
--> src/server/run/mod.rs:426:9
|
426 | / match level {
427 | | log::Level::Trace | log::Level::Debug => {
428 | | std::env::set_var("RUST_LOG", "debug");
429 | | env_logger::init_from_env(env_logger::Env::new().default_filter_or("info"));
430 | | }
431 | | _ => (),
432 | | }
| |_________^
|
help: the outer pattern can be modified to include the inner pattern
--> src/server/run/mod.rs:425:17
|
425 | if let Some(level) = args_common.verbose.log_level() {
| ^^^^^ replace this binding
426 | match level {
427 | log::Level::Trace | log::Level::Debug => {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ with this pattern
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match
= note: `#[warn(clippy::collapsible_match)]` on by default
|
the borrowed expression implements the required traits:
src/gnomad_nuclear/cli/import.rs#L421
warning: the borrowed expression implements the required traits
--> src/gnomad_nuclear/cli/import.rs:421:13
|
421 | &format!("gnomad-{}", header_field.replace('_', "-")),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("gnomad-{}", header_field.replace('_', "-"))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
src/genes/cli/import.rs#L1159
warning: the borrowed expression implements the required traits
--> src/genes/cli/import.rs:1159:39
|
1159 | db.put_cf(&cf_genes, hgnc_id, &record.encode_to_vec())?;
| ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `record.encode_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
|