Add ls hashmap to LK state, to remember displayed rows, to refer them later.

This commit is contained in:
Oleksandr Kozachuk
2022-12-11 16:22:04 +01:00
parent c8080b9856
commit f4e20f821c
+2 -1
View File
@@ -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) {