From f4e20f821cc3fa10c81dae80bc936a73676243b5 Mon Sep 17 00:00:00 2001 From: Oleksandr Kozachuk Date: Sun, 11 Dec 2022 16:22:04 +0100 Subject: [PATCH] Add `ls` hashmap to LK state, to remember displayed rows, to refer them later. --- src/lk.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lk.rs b/src/lk.rs index 7db276b..6798c42 100644 --- a/src/lk.rs +++ b/src/lk.rs @@ -5,11 +5,12 @@ use std::collections::HashMap; #[derive(PartialEq, Debug)] pub struct LK { pub db: HashMap, + pub ls: HashMap, } impl LK { pub fn new() -> Self { - Self { db: HashMap::new() } + Self { db: HashMap::new(), ls: HashMap::new() } } pub fn fix_hierarchy(&self) {