Skip to content

Commit

Permalink
fix more import errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementTsang committed Jun 5, 2024
1 parent 6e41af8 commit ebcee16
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use unicode_segmentation::{GraphemeCursor, UnicodeSegmentation};

use crate::{
canvas::components::time_chart::LegendPosition,
constants, convert_cache_data_points, convert_mem_data_points, convert_swap_data_points,
constants, convert_mem_data_points, convert_swap_data_points,
data_collection::{processes::Pid, temperature},
data_conversion::ConvertedData,
get_network_points,
Expand Down Expand Up @@ -213,7 +213,7 @@ impl App {
self.converted_data.mem_data = convert_mem_data_points(data_source);
#[cfg(not(target_os = "windows"))]
{
self.converted_data.cache_data = convert_cache_data_points(data_source);
self.converted_data.cache_data = crate::convert_cache_data_points(data_source);
}
self.converted_data.swap_data = convert_swap_data_points(data_source);
#[cfg(feature = "zfs")]
Expand Down
2 changes: 1 addition & 1 deletion src/data_collection/processes/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use hashbrown::HashMap;
use itertools::Itertools;

use super::UnixProcessExt;
use crate::Pid;
use crate::data_collection::Pid;

pub(crate) struct MacOSProcessExt;

Expand Down
2 changes: 1 addition & 1 deletion src/data_collection/processes/macos/sysctl_bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use libc::{
};
use mach2::vm_types::user_addr_t;

use crate::Pid;
use crate::data_collection::Pid;

#[allow(non_camel_case_types)]
#[repr(C)]
Expand Down
2 changes: 1 addition & 1 deletion src/data_collection/processes/unix/process_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use hashbrown::HashMap;
use sysinfo::{ProcessStatus, System};

use super::ProcessHarvest;
use crate::{data_collection::processes::UserTable, utils::error, Pid};
use crate::{data_collection::processes::UserTable, data_collection::Pid, utils::error};

pub(crate) trait UnixProcessExt {
fn sysinfo_process_data(
Expand Down

0 comments on commit ebcee16

Please sign in to comment.