mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-07 12:05:46 +00:00
Switch from BTree to Hash collections
This commit is contained in:
parent
2f5083278f
commit
f7139548f6
@ -1,5 +1,5 @@
|
|||||||
use std::{
|
use std::{
|
||||||
collections::{BTreeMap, BTreeSet},
|
collections::{HashMap, HashSet},
|
||||||
ffi::{OsStr, OsString},
|
ffi::{OsStr, OsString},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -47,8 +47,8 @@ impl Flag {
|
|||||||
|
|
||||||
#[derive(Default, PartialEq, Eq, Debug)]
|
#[derive(Default, PartialEq, Eq, Debug)]
|
||||||
pub struct Flags {
|
pub struct Flags {
|
||||||
pub boolean_flags: BTreeSet<&'static str>,
|
pub boolean_flags: HashSet<&'static str>,
|
||||||
pub argument_flags: BTreeMap<&'static str, OsString>,
|
pub argument_flags: HashMap<&'static str, OsString>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Flags {
|
impl Flags {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user