From 38898e41c3f9b120035dc1adaa2eb09a6d4daaff Mon Sep 17 00:00:00 2001 From: leca Date: Fri, 3 May 2024 00:12:28 +0300 Subject: [PATCH] remove unused imports --- src/ui/cards/edit/imp.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/ui/cards/edit/imp.rs b/src/ui/cards/edit/imp.rs index ca724a7..f00d85f 100644 --- a/src/ui/cards/edit/imp.rs +++ b/src/ui/cards/edit/imp.rs @@ -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.