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