mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
f9becbd3d1
This is a follow up to #9436 . It has a cleaner API and generalized the image_cache to be a generic asset cache, that all GPUI elements can make use off. The changes have been discussed with @mikayla-maki on Discord. --------- Co-authored-by: Mikayla <mikayla@zed.dev>
16 lines
437 B
Rust
16 lines
437 B
Rust
#[cfg(feature = "test-support")]
|
|
pub type HashMap<K, V> = FxHashMap<K, V>;
|
|
|
|
#[cfg(feature = "test-support")]
|
|
pub type HashSet<T> = FxHashSet<T>;
|
|
|
|
#[cfg(not(feature = "test-support"))]
|
|
pub type HashMap<K, V> = std::collections::HashMap<K, V>;
|
|
|
|
#[cfg(not(feature = "test-support"))]
|
|
pub type HashSet<T> = std::collections::HashSet<T>;
|
|
|
|
pub use rustc_hash::FxHasher;
|
|
pub use rustc_hash::{FxHashMap, FxHashSet};
|
|
pub use std::collections::*;
|