diff --git a/src/widgets/temp.rs b/src/widgets/temp.rs index ca529dc..1b706d8 100644 --- a/src/widgets/temp.rs +++ b/src/widgets/temp.rs @@ -1,5 +1,4 @@ use num_rational::Ratio; -use psutil::sensors; use tui::buffer::Buffer; use tui::layout::Rect; use tui::widgets::Widget; @@ -8,6 +7,9 @@ use crate::colorscheme::Colorscheme; use crate::update::UpdatableWidget; use crate::widgets::block; +#[cfg(target_os = "linux")] +use psutil::sensors; + pub struct TempWidget<'a> { title: String, update_interval: Ratio,