diff --git a/Cargo.toml b/Cargo.toml index d3f107e..2a491ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,6 +6,7 @@ edition = "2018" license = "Apache-2.0" [dependencies] +ahash = "0.3.5" err-derive = "0.2.4" [dev-dependencies] diff --git a/src/lib.rs b/src/lib.rs index 1bf63f5..1f53d8d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,4 @@ use std::{ - collections::HashMap, fs::File, io::{self, BufRead, BufReader}, num::ParseIntError, @@ -8,6 +7,7 @@ use std::{ str::FromStr, }; +use ahash::AHashMap as HashMap; use err_derive::Error; pub struct Segmenter {