Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
dalance committed Jul 30, 2024
1 parent bcd10f8 commit 9ac0ec2
Show file tree
Hide file tree
Showing 50 changed files with 0 additions and 122 deletions.
3 changes: 0 additions & 3 deletions src/columns/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ impl Column for Command {
column_default!(String);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Column for Command {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down Expand Up @@ -89,7 +88,6 @@ impl Column for Command {
column_default!(String);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "windows")]
impl Column for Command {
fn add(&mut self, proc: &ProcessInfo) {
Expand All @@ -103,7 +101,6 @@ impl Column for Command {
column_default!(String);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "freebsd")]
impl Column for Command {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
2 changes: 0 additions & 2 deletions src/columns/context_sw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ impl Column for ContextSw {
column_default!(u64);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Column for ContextSw {
fn add(&mut self, proc: &ProcessInfo) {
Expand All @@ -64,7 +63,6 @@ impl Column for ContextSw {
column_default!(u64);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "freebsd")]
impl Column for ContextSw {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
3 changes: 0 additions & 3 deletions src/columns/cpu_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ impl Column for CpuTime {
column_default!(u64);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Column for CpuTime {
fn add(&mut self, proc: &ProcessInfo) {
Expand All @@ -59,7 +58,6 @@ impl Column for CpuTime {
column_default!(u64);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "windows")]
impl Column for CpuTime {
fn add(&mut self, proc: &ProcessInfo) {
Expand All @@ -75,7 +73,6 @@ impl Column for CpuTime {
column_default!(u64);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "freebsd")]
impl Column for CpuTime {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
2 changes: 0 additions & 2 deletions src/columns/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ impl Docker {
}
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Docker {
pub fn new(header: Option<String>, path: &str) -> Self {
Expand Down Expand Up @@ -141,7 +140,6 @@ impl Column for Docker {
column_default!(String);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Column for Docker {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
3 changes: 0 additions & 3 deletions src/columns/elapsed_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ impl Column for ElapsedTime {
column_default!(Duration);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Column for ElapsedTime {
fn add(&mut self, proc: &ProcessInfo) {
Expand All @@ -96,7 +95,6 @@ impl Column for ElapsedTime {
column_default!(Duration);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "windows")]
impl Column for ElapsedTime {
fn add(&mut self, proc: &ProcessInfo) {
Expand All @@ -110,7 +108,6 @@ impl Column for ElapsedTime {
column_default!(Duration);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "freebsd")]
impl Column for ElapsedTime {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
1 change: 0 additions & 1 deletion src/columns/file_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ impl Column for FileName {
column_default!(String);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "freebsd")]
impl Column for FileName {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
3 changes: 0 additions & 3 deletions src/columns/gid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ impl Column for Gid {
column_default!(u32);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Column for Gid {
fn add(&mut self, proc: &ProcessInfo) {
Expand All @@ -62,7 +61,6 @@ impl Column for Gid {
column_default!(u32);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "windows")]
impl Column for Gid {
fn add(&mut self, proc: &ProcessInfo) {
Expand All @@ -85,7 +83,6 @@ impl Column for Gid {
column_default!(u32);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "freebsd")]
impl Column for Gid {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
2 changes: 0 additions & 2 deletions src/columns/gid_real.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ impl Column for GidReal {
column_default!(u32);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Column for GidReal {
fn add(&mut self, proc: &ProcessInfo) {
Expand All @@ -57,7 +56,6 @@ impl Column for GidReal {
column_default!(u32);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "freebsd")]
impl Column for GidReal {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
2 changes: 0 additions & 2 deletions src/columns/gid_saved.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ impl Column for GidSaved {
column_default!(u32);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Column for GidSaved {
fn add(&mut self, proc: &ProcessInfo) {
Expand All @@ -57,7 +56,6 @@ impl Column for GidSaved {
column_default!(u32);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "freebsd")]
impl Column for GidSaved {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
2 changes: 0 additions & 2 deletions src/columns/group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ impl Column for Group {
column_default!(String);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Column for Group {
fn add(&mut self, proc: &ProcessInfo) {
Expand All @@ -76,7 +75,6 @@ impl Column for Group {
column_default!(String);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "windows")]
impl Column for Group {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
1 change: 0 additions & 1 deletion src/columns/group_real.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ impl Column for GroupReal {
column_default!(String);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Column for GroupReal {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
1 change: 0 additions & 1 deletion src/columns/group_saved.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ impl Column for GroupSaved {
column_default!(String);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Column for GroupSaved {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
2 changes: 0 additions & 2 deletions src/columns/maj_flt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ impl Column for MajFlt {
column_default!(u64);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Column for MajFlt {
fn add(&mut self, proc: &ProcessInfo) {
Expand All @@ -52,7 +51,6 @@ impl Column for MajFlt {
column_default!(u64);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "windows")]
impl Column for MajFlt {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
1 change: 0 additions & 1 deletion src/columns/min_flt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ impl Column for MinFlt {
column_default!(u64);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Column for MinFlt {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
2 changes: 0 additions & 2 deletions src/columns/multi_slot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ pub struct MultiSlot {
width: usize,
}

#[cfg_attr(tarpaulin, skip)]
impl MultiSlot {
pub fn new() -> Self {
let header = String::new();
Expand All @@ -26,7 +25,6 @@ impl MultiSlot {
}
}

#[cfg_attr(tarpaulin, skip)]
impl Column for MultiSlot {
fn add(&mut self, proc: &ProcessInfo) {
let raw_content = String::new();
Expand Down
1 change: 0 additions & 1 deletion src/columns/nice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ impl Column for Nice {
column_default!(i64);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Column for Nice {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
1 change: 0 additions & 1 deletion src/columns/policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ impl Column for Policy {
column_default!(String);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Column for Policy {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
2 changes: 0 additions & 2 deletions src/columns/priority.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ impl Column for Priority {
column_default!(i64);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Column for Priority {
fn add(&mut self, proc: &ProcessInfo) {
Expand All @@ -52,7 +51,6 @@ impl Column for Priority {
column_default!(i64);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "windows")]
impl Column for Priority {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
3 changes: 0 additions & 3 deletions src/columns/read_bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ impl Column for ReadBytes {
column_default!(u64);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Column for ReadBytes {
fn add(&mut self, proc: &ProcessInfo) {
Expand All @@ -69,7 +68,6 @@ impl Column for ReadBytes {
column_default!(u64);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "windows")]
impl Column for ReadBytes {
fn add(&mut self, proc: &ProcessInfo) {
Expand All @@ -86,7 +84,6 @@ impl Column for ReadBytes {
column_default!(u64);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "freebsd")]
impl Column for ReadBytes {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
2 changes: 0 additions & 2 deletions src/columns/slot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ pub struct Slot {
width: usize,
}

#[cfg_attr(tarpaulin, skip)]
impl Slot {
pub fn new() -> Self {
let header = String::new();
Expand All @@ -26,7 +25,6 @@ impl Slot {
}
}

#[cfg_attr(tarpaulin, skip)]
impl Column for Slot {
fn add(&mut self, proc: &ProcessInfo) {
let raw_content = String::new();
Expand Down
3 changes: 0 additions & 3 deletions src/columns/start_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ impl Column for StartTime {
column_default!(DateTime<Local>);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Column for StartTime {
fn add(&mut self, proc: &ProcessInfo) {
Expand All @@ -72,7 +71,6 @@ impl Column for StartTime {
column_default!(DateTime<Local>);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "windows")]
impl Column for StartTime {
fn add(&mut self, proc: &ProcessInfo) {
Expand All @@ -86,7 +84,6 @@ impl Column for StartTime {
column_default!(DateTime<Local>);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "freebsd")]
impl Column for StartTime {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
2 changes: 0 additions & 2 deletions src/columns/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ impl Column for State {
column_default!(String);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Column for State {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down Expand Up @@ -80,7 +79,6 @@ impl Column for State {
column_default!(String);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "freebsd")]
impl Column for State {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
1 change: 0 additions & 1 deletion src/columns/tcp_port.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ impl Column for TcpPort {
crate::column_default_get_width!();
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Column for TcpPort {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
3 changes: 0 additions & 3 deletions src/columns/threads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ impl Column for Threads {
column_default!(i64);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "macos")]
impl Column for Threads {
fn add(&mut self, proc: &ProcessInfo) {
Expand All @@ -52,7 +51,6 @@ impl Column for Threads {
column_default!(i64);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "windows")]
impl Column for Threads {
fn add(&mut self, proc: &ProcessInfo) {
Expand All @@ -66,7 +64,6 @@ impl Column for Threads {
column_default!(i64);
}

#[cfg_attr(tarpaulin, skip)]
#[cfg(target_os = "freebsd")]
impl Column for Threads {
fn add(&mut self, proc: &ProcessInfo) {
Expand Down
2 changes: 0 additions & 2 deletions src/columns/tree_slot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ pub struct TreeSlot {
width: usize,
}

#[cfg_attr(tarpaulin, skip)]
impl TreeSlot {
pub fn new() -> Self {
let header = String::new();
Expand All @@ -26,7 +25,6 @@ impl TreeSlot {
}
}

#[cfg_attr(tarpaulin, skip)]
impl Column for TreeSlot {
fn add(&mut self, proc: &ProcessInfo) {
let raw_content = String::new();
Expand Down
Loading

0 comments on commit 9ac0ec2

Please sign in to comment.