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" }
|
ui = { package = "discourse-ui", path = "./discourse-ui" }
|
||||||
macros = { package = "discourse-macros", path = "./discourse-macros" }
|
macros = { package = "discourse-macros", path = "./discourse-macros" }
|
||||||
|
|
||||||
ahash = { version = "0.7", optional = true }
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
trybuild = { version = "1.0.42", features = ["diff"] }
|
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 }
|
insta = { version = "1.7.1", default-features = false }
|
||||||
rand = "0.8"
|
rand = "0.8"
|
||||||
rand_chacha = "0.3"
|
rand_chacha = "0.3"
|
||||||
|
@ -30,6 +29,6 @@ regex = "1.5" # examples/prompt_module.rs
|
||||||
fuzzy-matcher = "0.3" # examples/file.rs
|
fuzzy-matcher = "0.3" # examples/file.rs
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["crossterm", "ahash"]
|
default = ["crossterm"]
|
||||||
crossterm = ["ui/crossterm"]
|
crossterm = ["ui/crossterm"]
|
||||||
termion = ["ui/termion"]
|
termion = ["ui/termion"]
|
||||||
|
|
|
@ -1,14 +1,9 @@
|
||||||
use std::{
|
use std::{
|
||||||
collections::hash_map::{Entry, IntoIter},
|
collections::hash_map::{Entry, HashMap, IntoIter},
|
||||||
hash::Hash,
|
hash::Hash,
|
||||||
ops::{Deref, DerefMut},
|
ops::{Deref, DerefMut},
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(feature = "ahash")]
|
|
||||||
use ahash::AHashMap as HashMap;
|
|
||||||
#[cfg(not(feature = "ahash"))]
|
|
||||||
use std::collections::HashMap;
|
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, PartialOrd)]
|
#[derive(Debug, Clone, PartialEq, PartialOrd)]
|
||||||
pub enum Answer {
|
pub enum Answer {
|
||||||
String(String),
|
String(String),
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
#[cfg(feature = "ahash")]
|
|
||||||
use ahash::AHashSet as HashSet;
|
|
||||||
#[cfg(not(feature = "ahash"))]
|
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
|
|
||||||
use ui::{
|
use ui::{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user