Update ahash crate

This commit is contained in:
Alexandre Bury 2020-02-10 10:35:31 -08:00
parent 4b0b9265ee
commit a3583ae62e
6 changed files with 6 additions and 6 deletions

View File

@ -35,7 +35,7 @@ crossbeam-channel = "0.4.0"
lazy_static = "1"
chrono = "0.4.7"
cfg-if = "0.1.9"
ahash = "0.2.12"
ahash = "0.3"
[dependencies.toml]
optional = true

View File

@ -17,7 +17,7 @@ use crate::theme::{BaseColor, Color, ColorPair, Effect};
use crate::Vec2;
// Use AHash instead of the slower SipHash
type HashSet<K> = std::collections::HashSet<K, ahash::ABuildHasher>;
type HashSet<K> = std::collections::HashSet<K, ahash::RandomState>;
enum ColorRole {
Foreground,

View File

@ -14,7 +14,7 @@ pub mod n;
pub mod pan;
// Use AHash instead of the slower SipHash
type HashMap<K, V> = std::collections::HashMap<K, V, ahash::ABuildHasher>;
type HashMap<K, V> = std::collections::HashMap<K, V, ahash::RandomState>;
/// Split a i32 into individual bytes, little endian (least significant byte first).
fn split_i32(code: i32) -> Vec<u8> {

View File

@ -20,7 +20,7 @@ use self::super::split_i32;
use self::ncurses::mmask_t;
// Use AHash instead of the slower SipHash
type HashMap<K, V> = std::collections::HashMap<K, V, ahash::ABuildHasher>;
type HashMap<K, V> = std::collections::HashMap<K, V, ahash::RandomState>;
/// Backend using ncurses.
pub struct Backend {

View File

@ -14,7 +14,7 @@ use self::pancurses::mmask_t;
use super::split_i32;
// Use AHash instead of the slower SipHash
type HashMap<K, V> = std::collections::HashMap<K, V, ahash::ABuildHasher>;
type HashMap<K, V> = std::collections::HashMap<K, V, ahash::RandomState>;
/// Backend using pancurses.
pub struct Backend {

View File

@ -7,7 +7,7 @@ use std::ops::{Index, IndexMut};
use std::str::FromStr;
// Use AHash instead of the slower SipHash
type HashMap<K, V> = std::collections::HashMap<K, V, ahash::ABuildHasher>;
type HashMap<K, V> = std::collections::HashMap<K, V, ahash::RandomState>;
/// Color configuration for the application.
///