aboutsummaryrefslogtreecommitdiff
path: root/src/types.rs
diff options
context:
space:
mode:
authorShoelace <pierre.leidbring@gmail.com>2021-05-19 21:44:58 +0200
committerGitHub <noreply@github.com>2021-05-19 22:44:58 +0300
commit2a23bd20440b0d1a359c6bb4385b6771f2657a3b (patch)
treeec4052da5dff822c70ab20216298fe5be4abfeb7 /src/types.rs
parentb1d81bf8c936509b6f83b2eac98da8ae72e0a4e3 (diff)
Threaded to async (#58)
* Add async deps * Rename blocks to 'BlockManager' * Refactor "Blocks" to own module * Make all util fn async * Remove stray println
Diffstat (limited to 'src/types.rs')
-rw-r--r--src/types.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/types.rs b/src/types.rs
index 9b31946..9fd834e 100644
--- a/src/types.rs
+++ b/src/types.rs
@@ -1,4 +1,3 @@
-use breadx::{display::*, window::Window};
#[derive(Debug, Clone)]
pub enum ThreadsData {
@@ -140,21 +139,3 @@ pub struct BitCoins {
pub delay: f64,
}
-pub struct Blocks {
- pub disp: Display<name::NameConnection>,
- pub root: Window,
-}
-
-impl Blocks {
- pub fn new() -> Self {
- let disp = Display::create(None, None).expect("Failed to create x11 connection");
- let root = disp.default_screen().root;
- Self { disp, root }
- }
-}
-
-impl Default for Blocks {
- fn default() -> Self {
- Self::new()
- }
-}