Pārlūkot izejas kodu

n starts + qual

Thomas 2 gadi atpakaļ
vecāks
revīzija
04f10642dc
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      src/lib.rs

+ 2 - 2
src/lib.rs

@@ -128,8 +128,8 @@ pub fn range_depths(
 ) -> Result<Vec<u32>> {
     bam.fetch((chr, start, stop))?;
 
-    let mut depths = Vec::with_capacity((stop - start) as usize);
-    depths.fill(0);
+    let mut depths = vec![0];
+    depths.resize((stop - start) as usize, 0);
 
     for p in bam.pileup() {
         let pileup = p.context(format!("eRR"))?;