mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 09:25:01 +00:00
Use AHash for BLT HashSet
This commit is contained in:
parent
8dcaa3d7d5
commit
af5bd32eeb
@ -5,8 +5,6 @@
|
||||
|
||||
use bear_lib_terminal;
|
||||
|
||||
use std::collections::HashSet;
|
||||
|
||||
use self::bear_lib_terminal::geometry::Size;
|
||||
use self::bear_lib_terminal::terminal::{
|
||||
self, state, Event as BltEvent, KeyCode,
|
||||
@ -19,7 +17,7 @@ use crate::theme::{BaseColor, Color, ColorPair, Effect};
|
||||
use crate::vec::Vec2;
|
||||
|
||||
// Use AHash instead of the slower SipHash
|
||||
type HashMap<K, V> = std::collections::HashMap<K, V, ahash::ABuildHasher>;
|
||||
type HashSet<K> = std::collections::HashSet<K, ahash::ABuildHasher>;
|
||||
|
||||
enum ColorRole {
|
||||
Foreground,
|
||||
|
Loading…
Reference in New Issue
Block a user