diff options
author | Canop <cano.petrole@gmail.com> | 2021-05-20 21:39:02 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2021-05-20 21:45:09 +0200 |
commit | 10456e8bf21506a2d17f7da4891233502c9f5953 (patch) | |
tree | 0489decce04bd89ec3dd5ecb79352f58bf24a0a6 /src/display | |
parent | 4535e4c76cf7037119afa27b7d7a75c9cd9fa397 (diff) |
removed some `#[macro_use] extern crate`
Diffstat (limited to 'src/display')
-rw-r--r-- | src/display/displayable_tree.rs | 1 | ||||
-rw-r--r-- | src/display/git_status_display.rs | 1 | ||||
-rw-r--r-- | src/display/mod.rs | 3 | ||||
-rw-r--r-- | src/display/permissions.rs | 1 |
4 files changed, 6 insertions, 0 deletions
diff --git a/src/display/displayable_tree.rs b/src/display/displayable_tree.rs index 28ab478..fe050d0 100644 --- a/src/display/displayable_tree.rs +++ b/src/display/displayable_tree.rs @@ -1,5 +1,6 @@ use { super::{ + cond_bg, Col, CropWriter, GitStatusDisplay, diff --git a/src/display/git_status_display.rs b/src/display/git_status_display.rs index fd2e775..b443fc3 100644 --- a/src/display/git_status_display.rs +++ b/src/display/git_status_display.rs @@ -1,6 +1,7 @@ use { super::CropWriter, crate::{ + display::cond_bg, errors::ProgramError, git::TreeGitStatus, skin::StyleMap, diff --git a/src/display/mod.rs b/src/display/mod.rs index c59ebef..9b9d4ec 100644 --- a/src/display/mod.rs +++ b/src/display/mod.rs @@ -5,6 +5,7 @@ /// declare a style named `$dst` which is usually a reference to the `$src` /// skin but, in case `selected` is true, is a clone with background changed /// to the one of selected lines. +#[macro_export] macro_rules! cond_bg { ($dst:ident, $self:ident, $selected:expr, $src:expr) => { let mut cloned_style; @@ -38,6 +39,7 @@ mod permissions; pub use { areas::Areas, col::*, + cond_bg, crop_writer::CropWriter, displayable_tree::DisplayableTree, filling::*, @@ -57,6 +59,7 @@ use { }, QueueableCommand, }, + lazy_static::lazy_static, }; #[cfg(not(any(target_family="windows",target_os="android")))] diff --git a/src/display/permissions.rs b/src/display/permissions.rs index 9c7f0ae..56b8240 100644 --- a/src/display/permissions.rs +++ b/src/display/permissions.rs @@ -1,6 +1,7 @@ use { super::CropWriter, crate::{ + display::cond_bg, errors::ProgramError, permissions, skin::StyleMap, |