mirror of
https://github.com/zellij-org/zellij.git
synced 2024-11-23 19:10:09 +03:00
style(clippy): minor fix
This commit is contained in:
parent
4ac77874ac
commit
bc99f81960
@ -161,10 +161,10 @@ impl ClientOsApi for ClientOsInputOutput {
|
|||||||
*self.receive_instructions_from_server.lock().unwrap() = Some(receiver);
|
*self.receive_instructions_from_server.lock().unwrap() = Some(receiver);
|
||||||
}
|
}
|
||||||
fn load_palette(&self) -> Palette {
|
fn load_palette(&self) -> Palette {
|
||||||
let palette = default_palette();
|
|
||||||
// this was removed because termbg doesn't release stdin in certain scenarios (we know of
|
// 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
|
// windows terminal and FreeBSD): https://github.com/zellij-org/zellij/issues/538
|
||||||
//
|
//
|
||||||
|
// let palette = default_palette();
|
||||||
// let timeout = std::time::Duration::from_millis(100);
|
// let timeout = std::time::Duration::from_millis(100);
|
||||||
// if let Ok(rgb) = termbg::rgb(timeout) {
|
// if let Ok(rgb) = termbg::rgb(timeout) {
|
||||||
// palette.bg = PaletteColor::Rgb((rgb.r as u8, rgb.g as u8, rgb.b as u8));
|
// 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
|
// // this should be done in the same method (OSC ]11), but there might be other
|
||||||
// // considerations here, hence using the library
|
// // considerations here, hence using the library
|
||||||
// };
|
// };
|
||||||
palette
|
default_palette()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user