Use hashbrown

This commit is contained in:
juliancoffee 2021-05-04 17:13:13 +03:00
parent 89b6111064
commit 911bf974f3
4 changed files with 4 additions and 2 deletions

1
Cargo.lock generated
View File

@ -5650,6 +5650,7 @@ dependencies = [
"assets_manager", "assets_manager",
"deunicode", "deunicode",
"git2", "git2",
"hashbrown",
"lazy_static", "lazy_static",
"ron", "ron",
"serde", "serde",

View File

@ -10,6 +10,7 @@ name = "i18n-check"
[dependencies] [dependencies]
lazy_static = "1.4.0" lazy_static = "1.4.0"
hashbrown = { version = "0.9", features = ["serde", "nightly"] }
assets_manager = {version = "0.4.2", features = ["bincode", "ron", "json", "hot-reloading"]} assets_manager = {version = "0.4.2", features = ["bincode", "ron", "json", "hot-reloading"]}
deunicode = "1.0" deunicode = "1.0"
ron = "0.6" ron = "0.6"

View File

@ -5,7 +5,7 @@ use std::{
path::{Path, PathBuf}, path::{Path, PathBuf},
}; };
use std::collections::{HashMap, HashSet}; use hashbrown::{HashMap, HashSet};
/// The reference language, aka the more up-to-date localization data. Also the /// The reference language, aka the more up-to-date localization data. Also the
/// default language at first startup. /// default language at first startup.

View File

@ -1,7 +1,7 @@
use crate::assets::{self, AssetExt, AssetGuard, AssetHandle}; use crate::assets::{self, AssetExt, AssetGuard, AssetHandle};
use deunicode::deunicode; use deunicode::deunicode;
use hashbrown::{HashMap, HashSet};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use std::collections::{HashMap, HashSet};
use tracing::warn; use tracing::warn;
/// The reference language, aka the more up-to-date localization data. /// The reference language, aka the more up-to-date localization data.