summaryrefslogtreecommitdiffstats
path: root/src/display/luma.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/display/luma.rs')
-rw-r--r--src/display/luma.rs6
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() {