Add ls hashmap to LK state, to remember displayed rows, to refer them later.
This commit is contained in:
@@ -5,11 +5,12 @@ use std::collections::HashMap;
|
|||||||
#[derive(PartialEq, Debug)]
|
#[derive(PartialEq, Debug)]
|
||||||
pub struct LK {
|
pub struct LK {
|
||||||
pub db: HashMap<NameRef, PasswordRef>,
|
pub db: HashMap<NameRef, PasswordRef>,
|
||||||
|
pub ls: HashMap<String, PasswordRef>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl LK {
|
impl LK {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
Self { db: HashMap::new() }
|
Self { db: HashMap::new(), ls: HashMap::new() }
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn fix_hierarchy(&self) {
|
pub fn fix_hierarchy(&self) {
|
||||||
|
|||||||
Reference in New Issue
Block a user