remove unnecessary ahash
feature
This commit is contained in:
parent
08353945e5
commit
80e6d993b3
|
@ -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"]
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
#[cfg(feature = "ahash")]
|
||||
use ahash::AHashSet as HashSet;
|
||||
#[cfg(not(feature = "ahash"))]
|
||||
use std::collections::HashSet;
|
||||
|
||||
use ui::{
|
||||
|
|
Loading…
Reference in New Issue
Block a user