|
@@ -1,7 +1,7 @@
|
|
|
use std::{
|
|
use std::{
|
|
|
collections::{HashMap, HashSet},
|
|
collections::{HashMap, HashSet},
|
|
|
fs::{self, File},
|
|
fs::{self, File},
|
|
|
- io::{Read, Write},
|
|
|
|
|
|
|
+ io::Write,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
use anyhow::Context;
|
|
use anyhow::Context;
|
|
@@ -282,8 +282,8 @@ impl Variants {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
pub fn load_from_json(filename: &str) -> anyhow::Result<Self> {
|
|
pub fn load_from_json(filename: &str) -> anyhow::Result<Self> {
|
|
|
- let file = File::open(filename)
|
|
|
|
|
- .with_context(|| format!("Failed to open file: {}", filename))?;
|
|
|
|
|
|
|
+ let file =
|
|
|
|
|
+ File::open(filename).with_context(|| format!("Failed to open file: {}", filename))?;
|
|
|
let mut reader = BGZFReader::new(file)
|
|
let mut reader = BGZFReader::new(file)
|
|
|
.with_context(|| format!("Failed to create BGZF reader for file: {}", filename))?;
|
|
.with_context(|| format!("Failed to create BGZF reader for file: {}", filename))?;
|
|
|
|
|
|