diff --git a/Cargo.lock b/Cargo.lock index 3caa884..56045aa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -180,9 +180,9 @@ checksum = "ec8a7b6a70fde80372154c65702f00a0f56f3e1c36abbc6c440484be248856db" [[package]] name = "cc" -version = "1.0.76" +version = "1.0.79" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76a284da2e6fe2092f2353e51713435363112dfd60030e22add80be333fb928f" +checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" [[package]] name = "cfg-if" @@ -392,9 +392,9 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flate2" -version = "1.0.24" +version = "1.0.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f82b0f4c27ad9f8bfd1f3208d882da2b09c301bc1c828fd3a00d0216d2fbbff6" +checksum = "a8a2db397cb1c8772f31494cb8917e48cd1e64f0fa7efac59fbd741a0a8ce841" dependencies = [ "crc32fast", "libz-ng-sys", @@ -585,9 +585,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.137" +version = "0.2.139" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc7fcc620a3bff7cdd7a365be3376c97191aeaccc2a603e600951e452615bf89" +checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" [[package]] name = "libm" @@ -643,9 +643,9 @@ dependencies = [ [[package]] name = "minimap2" -version = "0.1.9" +version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88e1885d7cfde77940f710233dd45c0b1f739c5705348c79c77075defa94af2f" +checksum = "acce515adeecaa1ecce83f92fd55dae6d6bbd96731d9c053b2b3a90d1a535e58" dependencies = [ "bytelines", "fffx", @@ -657,9 +657,9 @@ dependencies = [ [[package]] name = "minimap2-sys" -version = "0.1.7" +version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67ee472c16758bed290c017b14101cdacea37aa2606880bd1beb12d14c035c42" +checksum = "f1f276571c6759045a1f4a4698aec870c40a1c69698edf788f1b439ce9b0483f" dependencies = [ "cc", "libc", @@ -669,9 +669,9 @@ dependencies = [ [[package]] name = "miniz_oxide" -version = "0.5.4" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96590ba8f175222643a85693f33d26e9c8a015f599c216509b1a6894af675d34" +checksum = "b275950c28b37e794e8c55d88aeb5e139d0ce23fdbbeda68f8d7174abdf9e8fa" dependencies = [ "adler", ] diff --git a/Cargo.toml b/Cargo.toml index f900a5b..19ea592 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,4 +11,4 @@ bio = "*" clap = { version = "3.2.6", features = ["derive"] } rayon = "*" approx = "*" -minimap2 = "0.1.9" +minimap2 = "0.1.10" diff --git a/src/main.rs b/src/main.rs index f1005c8..4258d95 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,6 @@ use clap::AppSettings::DeriveDisplayOrder; use clap::Parser; use minimap2::*; use rayon::prelude::*; -use std::fs::File; use std::io::{self, Read}; use std::path::PathBuf; @@ -194,7 +193,7 @@ fn test_ave_qual() { #[test] fn test_filter() { filter( - &mut File::open("test-data/test.fastq").unwrap(), + &mut std::fs::File::open("test-data/test.fastq").unwrap(), Cli { minlength: 100, maxlength: 100000, @@ -210,7 +209,7 @@ fn test_filter() { #[test] fn test_contam() { let aligner = setup_contamination_filter("test-data/random_contam.fa"); - let rec = fastq::Reader::new(File::open("test-data/test.fastq").unwrap()) + let rec = fastq::Reader::new(std::fs::File::open("test-data/test.fastq").unwrap()) .records() .next() .unwrap() @@ -221,7 +220,7 @@ fn test_contam() { #[test] fn test_no_contam() { let aligner = setup_contamination_filter("test-data/random_contam.fa"); - let rec = fastq::Reader::new(File::open("test-data/other-test.fastq").unwrap()) + let rec = fastq::Reader::new(std::fs::File::open("test-data/other-test.fastq").unwrap()) .records() .next() .unwrap() @@ -232,7 +231,7 @@ fn test_no_contam() { #[test] fn test_filter_with_contam() { filter( - &mut File::open("test-data/test.fastq").unwrap(), + &mut std::fs::File::open("test-data/test.fastq").unwrap(), Cli { minlength: 100, maxlength: 100000, @@ -247,7 +246,7 @@ fn test_filter_with_contam() { #[test] fn test_record_qual_len() { - fastq::Reader::new(File::open("test-data/test.fastq").unwrap()) + fastq::Reader::new(std::fs::File::open("test-data/test.fastq").unwrap()) .records() .into_iter() .for_each(|record| { @@ -266,7 +265,7 @@ fn test_record_qual_len() { #[test] fn test_quals() { - let rec = fastq::Reader::new(File::open("test-data/test.fastq").unwrap()) + let rec = fastq::Reader::new(std::fs::File::open("test-data/test.fastq").unwrap()) .records() .next() .unwrap()