diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2023-04-12 00:03:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-12 00:03:27 -0400 |
commit | e61e5f2af6b5f533461e15bb04250e9ad94a6627 (patch) | |
tree | 8149cafafa161679ce8daa08b22d09da40245963 /src/options.rs | |
parent | 857b5bade0d71326d43036b4d9b1294caf03f265 (diff) |
deps: Switch to using hashbrown for general hashmap usage (#1092)
* deps: replace fxhash with hashbrown + ahash
* replace std hashmap with hashbrown + ahash
* fmt
* some more fmt
Diffstat (limited to 'src/options.rs')
-rw-r--r-- | src/options.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/options.rs b/src/options.rs index 0a620129..0e24160b 100644 --- a/src/options.rs +++ b/src/options.rs @@ -1,21 +1,20 @@ use std::{ borrow::Cow, - collections::{HashMap, HashSet}, convert::TryInto, str::FromStr, time::{Duration, Instant}, }; use clap::ArgMatches; +use hashbrown::{HashMap, HashSet}; use layout_options::*; use regex::Regex; use serde::{Deserialize, Serialize}; +use typed_builder::*; #[cfg(feature = "battery")] use starship_battery::Manager; -use typed_builder::*; - use crate::{ app::{filter::Filter, layout_manager::*, *}, canvas::{canvas_styling::CanvasColours, ColourScheme}, @@ -826,9 +825,8 @@ mod test { use clap::ArgMatches; - use crate::{app::App, canvas::canvas_styling::CanvasColours}; - use super::{get_color_scheme, get_widget_layout, Config}; + use crate::{app::App, canvas::canvas_styling::CanvasColours}; fn create_app(mut config: Config, matches: ArgMatches) -> App { let (layout, id, ty) = get_widget_layout(&matches, &config).unwrap(); |