diff --git a/src/imports/fasta.rs b/src/imports/fasta.rs index 2d14c53..aff6e6c 100644 --- a/src/imports/fasta.rs +++ b/src/imports/fasta.rs @@ -1,5 +1,3 @@ -use std::collections::HashSet; -use std::fmt::Debug; use std::path::PathBuf; use std::str; @@ -8,9 +6,6 @@ use crate::models::{ sequence::Sequence, strand::Strand, }; use noodles::fasta; -use noodles::vcf::variant::record::samples::{Sample, Series}; -use noodles::vcf::variant::record::{AlternateBases, ReferenceBases, Samples}; -use noodles::vcf::variant::Record; use rusqlite::Connection; pub fn import_fasta(fasta: &String, name: &str, shallow: bool, conn: &mut Connection) { @@ -81,6 +76,7 @@ mod tests { // Note this useful idiom: importing names from outer (for mod tests) scope. use super::*; use crate::test_helpers::get_connection; + use std::collections::HashSet; #[test] fn test_add_fasta() { diff --git a/src/updates/vcf.rs b/src/updates/vcf.rs index b8a5b92..58003cc 100644 --- a/src/updates/vcf.rs +++ b/src/updates/vcf.rs @@ -1,7 +1,6 @@ -use std::collections::{HashMap, HashSet}; +use std::collections::HashMap; use std::fmt::Debug; -use std::path::PathBuf; -use std::{io, str}; +use std::{io, path::PathBuf, str}; use crate::migrations::run_migrations; use crate::models::{ @@ -15,8 +14,8 @@ use crate::parse_genotype; use noodles::vcf; use noodles::vcf::variant::record::samples::series::value::genotype::Phasing; use noodles::vcf::variant::record::samples::series::Value; -use noodles::vcf::variant::record::samples::{Sample, Series}; -use noodles::vcf::variant::record::{AlternateBases, ReferenceBases, Samples}; +use noodles::vcf::variant::record::samples::Sample; +use noodles::vcf::variant::record::AlternateBases; use noodles::vcf::variant::Record; use rusqlite::Connection; @@ -285,6 +284,7 @@ mod tests { use super::*; use crate::imports::fasta::import_fasta; use crate::test_helpers::get_connection; + use std::collections::HashSet; #[test] fn test_update_fasta_with_vcf() {