refactors and new dct binary
This commit is contained in:
+2
-2
@@ -8,7 +8,6 @@ use std::path::Path;
|
||||
use std::fmt;
|
||||
use log::{info, debug, error};
|
||||
use bktree::*;
|
||||
use viuer::{Config, print};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum SaveError {
|
||||
@@ -66,6 +65,7 @@ impl DescriptorStore {
|
||||
/// Inserts a single value into the store
|
||||
pub fn insert(&mut self, key: u64, value: String) {
|
||||
self.map.insert(key, value);
|
||||
self.bktree.insert(key);
|
||||
}
|
||||
|
||||
/// Calculates all descriptions with a given descriptor
|
||||
@@ -112,7 +112,7 @@ impl DescriptorStore {
|
||||
match name {
|
||||
Some(n) => {
|
||||
println!("{element:b}: {n} (distance: {distance})");
|
||||
if x+16 >= term_width {
|
||||
if x+16 >= term_width {
|
||||
x = 0;
|
||||
y += 8;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user