diff options
author | Canop <cano.petrole@gmail.com> | 2021-06-02 13:45:12 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2021-06-02 13:45:12 +0200 |
commit | 77f40f74c38392a5213f99006138d74772ac5c6c (patch) | |
tree | 145732e2e45e0dd3bf17e2a2f3e07027cc5d3338 /src/display | |
parent | 7635373786d1c0fbc45c326d4a0a8914396f7051 (diff) |
make the number of threads used for file summing configurable
Also replace lazy_static with once_cell
Diffstat (limited to 'src/display')
-rw-r--r-- | src/display/mod.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/display/mod.rs b/src/display/mod.rs index 9b9d4ec..4042da7 100644 --- a/src/display/mod.rs +++ b/src/display/mod.rs @@ -59,7 +59,7 @@ use { }, QueueableCommand, }, - lazy_static::lazy_static, + once_cell::sync::Lazy, }; #[cfg(not(any(target_family="windows",target_os="android")))] @@ -69,10 +69,8 @@ pub use { pub static TAB_REPLACEMENT: &str = " "; -lazy_static! { - pub static ref SPACE_FILLING: Filling = Filling::from_char(' '); - pub static ref BRANCH_FILLING: Filling = Filling::from_char('─'); -} +pub static SPACE_FILLING: Lazy<Filling> = Lazy::new(|| { Filling::from_char(' ') }); +pub static BRANCH_FILLING: Lazy<Filling> = Lazy::new(|| { Filling::from_char('─') }); /// if true then the status of a panel covers the whole width /// of the terminal (over the other panels) |