From f7139548f663c4c2decbbd2d1fa543f681a80b15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20M=2E=20Bezerra?= Date: Tue, 5 Oct 2021 18:10:28 -0300 Subject: [PATCH] Switch from BTree to Hash collections --- src/oof/flags.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/oof/flags.rs b/src/oof/flags.rs index 7ff1a78..231ec5c 100644 --- a/src/oof/flags.rs +++ b/src/oof/flags.rs @@ -1,5 +1,5 @@ use std::{ - collections::{BTreeMap, BTreeSet}, + collections::{HashMap, HashSet}, ffi::{OsStr, OsString}, }; @@ -47,8 +47,8 @@ impl Flag { #[derive(Default, PartialEq, Eq, Debug)] pub struct Flags { - pub boolean_flags: BTreeSet<&'static str>, - pub argument_flags: BTreeMap<&'static str, OsString>, + pub boolean_flags: HashSet<&'static str>, + pub argument_flags: HashMap<&'static str, OsString>, } impl Flags {