From dc703e0a2c5e6e341ecd7b32b2650214a88ca7d1 Mon Sep 17 00:00:00 2001 From: Chris Macklin Date: Wed, 21 Feb 2024 17:13:58 -0800 Subject: [PATCH] cargo fmt --- exons/src/lib.rs | 4 +--- graph_simple/src/lib.rs | 3 --- hyperbase/src/lib.rs | 6 +----- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/exons/src/lib.rs b/exons/src/lib.rs index 4fb764423..05de375f4 100644 --- a/exons/src/lib.rs +++ b/exons/src/lib.rs @@ -15,9 +15,7 @@ pub fn fetch_exons(species: &str, exons: &mut Vec<(String, i32, i32, bool, Strin let root = "/mnt/opt/meowmix_git/ensembl/release-94/gtf"; let gtf = if species == "human" { - format!( - "{root}/homo_sapiens/Homo_sapiens.GRCh38.94.chr_patch_hapl_scaff.gtf" - ) + format!("{root}/homo_sapiens/Homo_sapiens.GRCh38.94.chr_patch_hapl_scaff.gtf") } else { format!("{root}/mus_musculus/Mus_musculus.GRCm38.94.gtf") }; diff --git a/graph_simple/src/lib.rs b/graph_simple/src/lib.rs index 00cd393ab..36cf68735 100644 --- a/graph_simple/src/lib.rs +++ b/graph_simple/src/lib.rs @@ -180,7 +180,6 @@ where tov.insert(s); } while let Some(x) = check.pop() { - let n = self.n_to(x as usize); for i in 0..n { let y = self.v_to(x as usize, i); @@ -212,7 +211,6 @@ where fromv.insert(s); } while let Some(x) = check.pop() { - let n = self.n_from(x as usize); for i in 0..n { let y = self.v_from(x as usize, i); @@ -256,7 +254,6 @@ where cnext.clear(); cnext.push(v as u32); while let Some(w) = cnext.pop() { - if used[w as usize] { continue; } diff --git a/hyperbase/src/lib.rs b/hyperbase/src/lib.rs index d2f23c1d6..c4c0d772b 100644 --- a/hyperbase/src/lib.rs +++ b/hyperbase/src/lib.rs @@ -598,7 +598,6 @@ impl Hyper { let mut bound = Vec::<(u32, u32)>::new(); while let Some(v) = vertex_queue.pop() { - if !vertex_kill[v.index()] { continue; } @@ -645,7 +644,6 @@ impl Hyper { let mut havex: Vec = vec![false; (maxread + 1) as usize]; self.ids.reserve(bound.len()); while let Some(bounds) = bound.pop() { - let new_edge_no: usize = self.h.g.edge_count(); let mut new_edge = self.h.g.edge_obj(bounds.0).clone(); have = self.ids[bounds.0 as usize].clone(); @@ -785,9 +783,7 @@ impl Hyper { ); let (e1, e2) = (homomorphism_fails[0].0, homomorphism_fails[0].1); let (re1, re2) = (self.inv[e1], self.inv[e2]); - println!( - "first has e1 = {e1}, e2 = {e2}, re1 = {re1}, re2 = {re2}" - ); + println!("first has e1 = {e1}, e2 = {e2}, re1 = {re1}, re2 = {re2}"); panic!("bailing because of test_involution failure"); } }