From 911bf974f39b4d5e382a77cec99e8d81543dbade Mon Sep 17 00:00:00 2001 From: juliancoffee Date: Tue, 4 May 2021 17:13:13 +0300 Subject: [PATCH] Use hashbrown --- Cargo.lock | 1 + voxygen/i18n/Cargo.toml | 1 + voxygen/i18n/src/analysis.rs | 2 +- voxygen/i18n/src/i18n.rs | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 97e85dda97..f1775a8d45 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5650,6 +5650,7 @@ dependencies = [ "assets_manager", "deunicode", "git2", + "hashbrown", "lazy_static", "ron", "serde", diff --git a/voxygen/i18n/Cargo.toml b/voxygen/i18n/Cargo.toml index 031d6fda50..eb97136baa 100644 --- a/voxygen/i18n/Cargo.toml +++ b/voxygen/i18n/Cargo.toml @@ -10,6 +10,7 @@ name = "i18n-check" [dependencies] lazy_static = "1.4.0" +hashbrown = { version = "0.9", features = ["serde", "nightly"] } assets_manager = {version = "0.4.2", features = ["bincode", "ron", "json", "hot-reloading"]} deunicode = "1.0" ron = "0.6" diff --git a/voxygen/i18n/src/analysis.rs b/voxygen/i18n/src/analysis.rs index 537fb67795..d7cdf7656d 100644 --- a/voxygen/i18n/src/analysis.rs +++ b/voxygen/i18n/src/analysis.rs @@ -5,7 +5,7 @@ use std::{ 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 /// default language at first startup. diff --git a/voxygen/i18n/src/i18n.rs b/voxygen/i18n/src/i18n.rs index 42eb687157..2e940d4f0f 100644 --- a/voxygen/i18n/src/i18n.rs +++ b/voxygen/i18n/src/i18n.rs @@ -1,7 +1,7 @@ use crate::assets::{self, AssetExt, AssetGuard, AssetHandle}; use deunicode::deunicode; +use hashbrown::{HashMap, HashSet}; use serde::{Deserialize, Serialize}; -use std::collections::{HashMap, HashSet}; use tracing::warn; /// The reference language, aka the more up-to-date localization data.