satisfied cargo clippy
This commit is contained in:
@@ -21,7 +21,7 @@ pub struct HardwareInfo {
|
||||
pub memory: memory::MemoryInfo,
|
||||
pub disk: disk::DiskInfo,
|
||||
pub network: network::NetworkInfo,
|
||||
network_monitor: network::NetworkMonitor,
|
||||
pub network_monitor: network::NetworkMonitor,
|
||||
}
|
||||
|
||||
impl HardwareInfo {
|
||||
|
@@ -16,6 +16,12 @@ pub struct NetworkMonitor {
|
||||
last_update: Instant,
|
||||
}
|
||||
|
||||
impl Default for NetworkMonitor {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl NetworkMonitor {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
|
Reference in New Issue
Block a user