diff options
author | Canop <cano.petrole@gmail.com> | 2022-07-09 09:47:24 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2022-07-09 09:47:24 +0200 |
commit | f5b33c43c10795661b626330ee86f1979b0957f7 (patch) | |
tree | 3768f6aa0460caa5dcb39d70d12457194407300c /src/display | |
parent | d4751c863011bf2583b07942363df3f70db37d97 (diff) |
use mio instead of epoll to find terminal's lumaterminal-light-mio
For compatibiliy with more unix variants
Diffstat (limited to 'src/display')
-rw-r--r-- | src/display/luma.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/display/luma.rs b/src/display/luma.rs index 479e4c9..c9e9105 100644 --- a/src/display/luma.rs +++ b/src/display/luma.rs @@ -15,7 +15,6 @@ pub enum Luma { /// Return the light of the terminal background, which is a value /// between 0 (black) and 1 (white). -#[cfg(target_os = "linux")] pub fn luma() -> &'static Result<f32, terminal_light::TlError> { static LUMA: Lazy<Result<f32, terminal_light::TlError>> = Lazy::new(|| { let luma = time!(Debug, terminal_light::luma()); @@ -25,11 +24,6 @@ pub fn luma() -> &'static Result<f32, terminal_light::TlError> { &*LUMA } -#[cfg(not(target_os = "linux"))] -pub fn luma() -> Result<&'static f32, &'static str> { - Err("not implemented on this OS") -} - impl Luma { pub fn read() -> Self { match luma() { |