Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Jul 11, 2024
1 parent 722195b commit 38b9817
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::{env, path::PathBuf};

fn main() -> Result<(), anyhow::Error> {
let root = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("protos");
let proto_files = vec!["viguno/v1/simulation.proto"]
let proto_files = ["viguno/v1/simulation.proto"]
.iter()
.map(|f| root.join(f))
.collect::<Vec<_>>();
Expand Down
2 changes: 1 addition & 1 deletion src/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ pub fn run(args_common: &crate::common::Args, args: &Args) -> Result<(), anyhow:
tracing::info!("Loading HGNC xlink...");
let before_load_xlink = Instant::now();
let path_hgnc_xlink = format!("{}/hgnc_xlink.tsv", args.path_hpo_dir);
let ncbi_to_hgnc = crate::common::hgnc_xlink::load_ncbi_to_hgnc(&path_hgnc_xlink)?;
let ncbi_to_hgnc = crate::common::hgnc_xlink::load_ncbi_to_hgnc(path_hgnc_xlink)?;

Check warning on line 319 in src/query/mod.rs

View check run for this annotation

Codecov / codecov/patch

src/query/mod.rs#L318-L319

Added lines #L318 - L319 were not covered by tests
tracing::info!(
"... done loading HGNC xlink in {:?}",
before_load_xlink.elapsed()
Expand Down
2 changes: 1 addition & 1 deletion src/server/run/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ pub fn run(args_common: &crate::common::Args, args: &Args) -> Result<(), anyhow:
tracing::info!("Loading HGNC xlink...");
let before_load_xlink = std::time::Instant::now();
let path_hgnc_xlink = format!("{}/hgnc_xlink.tsv", args.path_hpo_dir);
let ncbi_to_hgnc = crate::common::hgnc_xlink::load_ncbi_to_hgnc(&path_hgnc_xlink)?;
let ncbi_to_hgnc = crate::common::hgnc_xlink::load_ncbi_to_hgnc(path_hgnc_xlink)?;

Check warning on line 267 in src/server/run/mod.rs

View check run for this annotation

Codecov / codecov/patch

src/server/run/mod.rs#L266-L267

Added lines #L266 - L267 were not covered by tests
let hgnc_to_ncbi = crate::common::hgnc_xlink::inverse_hashmap(&ncbi_to_hgnc);
tracing::info!(
"... done loading HGNC xlink in {:?}",
Expand Down

0 comments on commit 38b9817

Please sign in to comment.