From bc99f81960d34939afe33278d3e4f8e1119c1961 Mon Sep 17 00:00:00 2001 From: Aram Drevekenin Date: Fri, 28 May 2021 11:46:00 +0200 Subject: [PATCH] style(clippy): minor fix --- zellij-client/src/os_input_output.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zellij-client/src/os_input_output.rs b/zellij-client/src/os_input_output.rs index 1c502674..0606ae37 100644 --- a/zellij-client/src/os_input_output.rs +++ b/zellij-client/src/os_input_output.rs @@ -161,10 +161,10 @@ impl ClientOsApi for ClientOsInputOutput { *self.receive_instructions_from_server.lock().unwrap() = Some(receiver); } fn load_palette(&self) -> Palette { - let palette = default_palette(); // this was removed because termbg doesn't release stdin in certain scenarios (we know of // windows terminal and FreeBSD): https://github.com/zellij-org/zellij/issues/538 // + // let palette = default_palette(); // let timeout = std::time::Duration::from_millis(100); // if let Ok(rgb) = termbg::rgb(timeout) { // palette.bg = PaletteColor::Rgb((rgb.r as u8, rgb.g as u8, rgb.b as u8)); @@ -172,7 +172,7 @@ impl ClientOsApi for ClientOsInputOutput { // // this should be done in the same method (OSC ]11), but there might be other // // considerations here, hence using the library // }; - palette + default_palette() } }