Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dalance committed Jul 30, 2024
1 parent fe4dd3f commit 4da3fb6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/columns/tcp_port.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ impl Column for TcpPort {
#[cfg(target_os = "windows")]
pub struct TcpNetEntry {
pub local_address: SocketAddr,
#[allow(dead_code)]
pub remote_address: SocketAddr,
pub state: MIB_TCP_STATE,
pub pid: u32,
Expand Down
4 changes: 4 additions & 0 deletions src/process/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,14 @@ fn get_arg_max() -> size_t {
}

pub struct PathInfo {
#[allow(dead_code)]
pub name: String,
#[allow(dead_code)]
pub exe: PathBuf,
#[allow(dead_code)]
pub root: PathBuf,
pub cmd: Vec<String>,
#[allow(dead_code)]
pub env: Vec<String>,
}

Expand Down
4 changes: 4 additions & 0 deletions src/process/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,13 @@ pub struct MemoryInfo {
pub page_fault_count: u64,
pub peak_working_set_size: u64,
pub working_set_size: u64,
#[allow(dead_code)]
pub quota_peak_paged_pool_usage: u64,
pub quota_paged_pool_usage: u64,
#[allow(dead_code)]
pub quota_peak_non_paged_pool_usage: u64,
pub quota_non_paged_pool_usage: u64,
#[allow(dead_code)]
pub page_file_usage: u64,
pub peak_page_file_usage: u64,
pub private_usage: u64,
Expand Down Expand Up @@ -409,6 +412,7 @@ fn get_io(handle: HANDLE) -> Option<(u64, u64)> {
pub struct SidName {
pub sid: Vec<u64>,
pub name: Option<String>,
#[allow(dead_code)]
pub domainname: Option<String>,
}

Expand Down

0 comments on commit 4da3fb6

Please sign in to comment.