diff --git a/build.rs b/build.rs index c5bc7cc..ee5e155 100644 --- a/build.rs +++ b/build.rs @@ -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::>(); diff --git a/src/query/mod.rs b/src/query/mod.rs index f7bab3e..59ab314 100644 --- a/src/query/mod.rs +++ b/src/query/mod.rs @@ -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)?; tracing::info!( "... done loading HGNC xlink in {:?}", before_load_xlink.elapsed() diff --git a/src/server/run/mod.rs b/src/server/run/mod.rs index 2e67223..bf219b4 100644 --- a/src/server/run/mod.rs +++ b/src/server/run/mod.rs @@ -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)?; let hgnc_to_ncbi = crate::common::hgnc_xlink::inverse_hashmap(&ncbi_to_hgnc); tracing::info!( "... done loading HGNC xlink in {:?}",