diff --git a/src/widgets/battery.rs b/src/widgets/battery.rs index 45df66d..32f6a45 100644 --- a/src/widgets/battery.rs +++ b/src/widgets/battery.rs @@ -5,7 +5,7 @@ use tui::buffer::Buffer; use tui::layout::Rect; use tui::widgets::Widget; -use crate::widgets::block; +use super::block; pub struct BatteryWidget { title: String, diff --git a/src/widgets/cpu.rs b/src/widgets/cpu.rs index 8f9fa68..97ce135 100644 --- a/src/widgets/cpu.rs +++ b/src/widgets/cpu.rs @@ -4,7 +4,7 @@ use tui::layout::Rect; use tui::style::{Color, Style}; use tui::widgets::{Axis, Chart, Dataset, Marker, Widget}; -use crate::widgets::block; +use super::block; pub struct CpuWidget { title: String, diff --git a/src/widgets/disk.rs b/src/widgets/disk.rs index 50c8ea0..d5b16d5 100644 --- a/src/widgets/disk.rs +++ b/src/widgets/disk.rs @@ -6,7 +6,7 @@ use tui::buffer::Buffer; use tui::layout::Rect; use tui::widgets::Widget; -use crate::widgets::block; +use super::block; struct Partition { name: String, diff --git a/src/widgets/help_menu.rs b/src/widgets/help_menu.rs index 6eecb3e..36bf8d9 100644 --- a/src/widgets/help_menu.rs +++ b/src/widgets/help_menu.rs @@ -3,7 +3,7 @@ use tui::buffer::Buffer; use tui::layout::Rect; use tui::widgets::{Paragraph, Text, Widget}; -use crate::widgets::block; +use super::block; const TEXT: &str = r"Quit: q or Process navigation: diff --git a/src/widgets/mem.rs b/src/widgets/mem.rs index d523d4e..d74e449 100644 --- a/src/widgets/mem.rs +++ b/src/widgets/mem.rs @@ -3,7 +3,7 @@ use tui::buffer::Buffer; use tui::layout::Rect; use tui::widgets::Widget; -use crate::widgets::block; +use super::block; pub struct MemWidget { title: String, diff --git a/src/widgets/net.rs b/src/widgets/net.rs index 02dfe84..7adb2be 100644 --- a/src/widgets/net.rs +++ b/src/widgets/net.rs @@ -3,7 +3,7 @@ use tui::buffer::Buffer; use tui::layout::Rect; use tui::widgets::Widget; -use crate::widgets::block; +use super::block; pub struct NetWidget { title: String, diff --git a/src/widgets/proc.rs b/src/widgets/proc.rs index ec2bebb..bbfb2dd 100644 --- a/src/widgets/proc.rs +++ b/src/widgets/proc.rs @@ -3,7 +3,7 @@ use tui::buffer::Buffer; use tui::layout::Rect; use tui::widgets::Widget; -use crate::widgets::block; +use super::block; pub struct ProcWidget { title: String, diff --git a/src/widgets/statusbar.rs b/src/widgets/statusbar.rs index e2f72d8..eed16ba 100644 --- a/src/widgets/statusbar.rs +++ b/src/widgets/statusbar.rs @@ -4,7 +4,7 @@ use tui::layout::Rect; use tui::style::{Color, Style}; use tui::widgets::Widget; -use crate::widgets::block; +use super::block; pub struct Statusbar { hostname: String, diff --git a/src/widgets/temp.rs b/src/widgets/temp.rs index ac6216e..721b5bc 100644 --- a/src/widgets/temp.rs +++ b/src/widgets/temp.rs @@ -3,7 +3,7 @@ use tui::buffer::Buffer; use tui::layout::Rect; use tui::widgets::Widget; -use crate::widgets::block; +use super::block; pub struct TempWidget { title: String,