diff --git a/Cargo.toml b/Cargo.toml index 2f6a20c..5ceac88 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,10 +17,9 @@ atty = "0.2" ui = { package = "discourse-ui", path = "./discourse-ui" } macros = { package = "discourse-macros", path = "./discourse-macros" } -ahash = { version = "0.7", optional = true } - [dev-dependencies] trybuild = { version = "1.0.42", features = ["diff"] } +# remove color printing since it messes with the snapshot's colours insta = { version = "1.7.1", default-features = false } rand = "0.8" rand_chacha = "0.3" @@ -30,6 +29,6 @@ regex = "1.5" # examples/prompt_module.rs fuzzy-matcher = "0.3" # examples/file.rs [features] -default = ["crossterm", "ahash"] +default = ["crossterm"] crossterm = ["ui/crossterm"] termion = ["ui/termion"] diff --git a/src/answer.rs b/src/answer.rs index cff4c23..9e97721 100644 --- a/src/answer.rs +++ b/src/answer.rs @@ -1,14 +1,9 @@ use std::{ - collections::hash_map::{Entry, IntoIter}, + collections::hash_map::{Entry, HashMap, IntoIter}, hash::Hash, ops::{Deref, DerefMut}, }; -#[cfg(feature = "ahash")] -use ahash::AHashMap as HashMap; -#[cfg(not(feature = "ahash"))] -use std::collections::HashMap; - #[derive(Debug, Clone, PartialEq, PartialOrd)] pub enum Answer { String(String), diff --git a/src/question/expand/mod.rs b/src/question/expand/mod.rs index b5b97f2..c411227 100644 --- a/src/question/expand/mod.rs +++ b/src/question/expand/mod.rs @@ -1,6 +1,3 @@ -#[cfg(feature = "ahash")] -use ahash::AHashSet as HashSet; -#[cfg(not(feature = "ahash"))] use std::collections::HashSet; use ui::{