Use Fx* variants of HashMap and HashSet everywhere in Zed (#7481)
Release Notes: - N/A
This commit is contained in:
parent
7939673a7d
commit
eb236302c2
27 changed files with 96 additions and 102 deletions
|
@ -8,11 +8,7 @@ license = "GPL-3.0-or-later"
|
|||
[features]
|
||||
default = []
|
||||
stories = ["dep:itertools", "dep:story"]
|
||||
test-support = [
|
||||
"gpui/test-support",
|
||||
"fs/test-support",
|
||||
"settings/test-support"
|
||||
]
|
||||
test-support = ["gpui/test-support", "fs/test-support", "settings/test-support"]
|
||||
|
||||
[lib]
|
||||
path = "src/theme.rs"
|
||||
|
@ -20,6 +16,7 @@ doctest = false
|
|||
|
||||
[dependencies]
|
||||
anyhow.workspace = true
|
||||
collections.workspace = true
|
||||
color.workspace = true
|
||||
derive_more.workspace = true
|
||||
fs.workspace = true
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
use std::collections::HashMap;
|
||||
use std::path::Path;
|
||||
use std::sync::Arc;
|
||||
|
||||
use anyhow::{anyhow, Context, Result};
|
||||
use collections::HashMap;
|
||||
use derive_more::{Deref, DerefMut};
|
||||
use fs::Fs;
|
||||
use futures::StreamExt;
|
||||
|
@ -64,7 +64,7 @@ impl ThemeRegistry {
|
|||
pub fn new(assets: Box<dyn AssetSource>) -> Self {
|
||||
let registry = Self {
|
||||
state: RwLock::new(ThemeRegistryState {
|
||||
themes: HashMap::new(),
|
||||
themes: HashMap::default(),
|
||||
}),
|
||||
assets,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue