mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-09 19:00:46 +00:00
Update ahash crate
This commit is contained in:
parent
4b0b9265ee
commit
a3583ae62e
@ -35,7 +35,7 @@ crossbeam-channel = "0.4.0"
|
|||||||
lazy_static = "1"
|
lazy_static = "1"
|
||||||
chrono = "0.4.7"
|
chrono = "0.4.7"
|
||||||
cfg-if = "0.1.9"
|
cfg-if = "0.1.9"
|
||||||
ahash = "0.2.12"
|
ahash = "0.3"
|
||||||
|
|
||||||
[dependencies.toml]
|
[dependencies.toml]
|
||||||
optional = true
|
optional = true
|
||||||
|
@ -17,7 +17,7 @@ use crate::theme::{BaseColor, Color, ColorPair, Effect};
|
|||||||
use crate::Vec2;
|
use crate::Vec2;
|
||||||
|
|
||||||
// Use AHash instead of the slower SipHash
|
// 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 {
|
enum ColorRole {
|
||||||
Foreground,
|
Foreground,
|
||||||
|
@ -14,7 +14,7 @@ pub mod n;
|
|||||||
pub mod pan;
|
pub mod pan;
|
||||||
|
|
||||||
// Use AHash instead of the slower SipHash
|
// 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).
|
/// Split a i32 into individual bytes, little endian (least significant byte first).
|
||||||
fn split_i32(code: i32) -> Vec<u8> {
|
fn split_i32(code: i32) -> Vec<u8> {
|
||||||
|
@ -20,7 +20,7 @@ use self::super::split_i32;
|
|||||||
use self::ncurses::mmask_t;
|
use self::ncurses::mmask_t;
|
||||||
|
|
||||||
// Use AHash instead of the slower SipHash
|
// 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.
|
/// Backend using ncurses.
|
||||||
pub struct Backend {
|
pub struct Backend {
|
||||||
|
@ -14,7 +14,7 @@ use self::pancurses::mmask_t;
|
|||||||
use super::split_i32;
|
use super::split_i32;
|
||||||
|
|
||||||
// Use AHash instead of the slower SipHash
|
// 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.
|
/// Backend using pancurses.
|
||||||
pub struct Backend {
|
pub struct Backend {
|
||||||
|
@ -7,7 +7,7 @@ use std::ops::{Index, IndexMut};
|
|||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
||||||
// Use AHash instead of the slower SipHash
|
// 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.
|
/// Color configuration for the application.
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user