remove unused imports

This commit is contained in:
leca 2024-05-03 00:12:28 +03:00
parent a16685d009
commit 38898e41c3
1 changed files with 6 additions and 4 deletions

View File

@ -1,12 +1,12 @@
use std::borrow::Borrow;
use std::cell::RefCell;
use std::sync::{Arc, Mutex};
use std::thread::spawn;
use std::{fs, thread};
use std::{fs};
use std::io::ErrorKind;
use std::path::Path;
use std::rc::Rc;
use std::time::Duration;
use crate::card::Card;
use crate::db::*;
@ -24,7 +24,7 @@ use gtk::{
};
use gtk::{prelude::*, FileDialog};
use gtk::{ListItem, SignalListItemFactory};
use rusqlite::{Connection, MappedRows, Statement};
use rusqlite::{Connection};
use sha256::try_digest;
#[derive(CompositeTemplate, Default)]
@ -95,6 +95,8 @@ impl ObjectImpl for MemoryCardsEditScene {
new_win.present();
}));
let a = Connection::open_in_memory().expect("");
self.search_entry.connect_closure("activate", false, closure_local!(@strong binding => move |e: &SearchEntry| {
// Put query to the separate thread so that cards load on fly.