diff --git a/Cargo.toml b/Cargo.toml index e243c24..3a65ec2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oarfish" -version = "0.5.0" +version = "0.5.1" edition = "2021" authors = [ "Zahra Zare Jousheghani ", diff --git a/src/main.rs b/src/main.rs index 63f7ee2..688b424 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,11 +4,7 @@ use std::num::NonZeroUsize; use anyhow::Context; use arrow2::{array::Float64Array, chunk::Chunk, datatypes::Field}; -use std::{ - fs::File, - io::{self, BufReader}, - path::PathBuf, -}; +use std::{fs::File, io, path::PathBuf}; use num_format::{Locale, ToFormattedString}; use serde::Serialize; @@ -301,6 +297,9 @@ fn main() -> anyhow::Result<()> { // print discard table information in which the user might be interested. info!("\ndiscard_table: \n{}\n", store.discard_table.to_table()); + // no longer need the reader + drop(reader); + // if we are using the KDE, create that here. let kde_opt: Option = if args.use_kde { Some(kde_utils::get_kde_model(&txps, &store)?)