remove unnecessary ahash feature

This commit is contained in:
Lutetium-Vanadium 2021-06-27 16:57:38 +05:30
parent 08353945e5
commit 80e6d993b3
3 changed files with 3 additions and 12 deletions

View File

@ -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"]

View File

@ -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),

View File

@ -1,6 +1,3 @@
#[cfg(feature = "ahash")]
use ahash::AHashSet as HashSet;
#[cfg(not(feature = "ahash"))]
use std::collections::HashSet;
use ui::{