Skip to content

Commit abe0b23

Browse files
Fix clippys by removing extra ';'
1 parent e54f37a commit abe0b23

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/libproc/proc_pid.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ mod test {
675675
match pidinfo::<BSDInfo>(pid, 0) {
676676
Ok(info) => assert_eq!(info.pbi_pid as i32, pid),
677677
Err(e) => panic!("Error retrieving BSDInfo: {}", e),
678-
};
678+
}
679679
}
680680

681681
#[cfg(target_os = "macos")]
@@ -686,7 +686,7 @@ mod test {
686686
match pidinfo::<TaskInfo>(pid, 0) {
687687
Ok(info) => assert!(info.pti_virtual_size > 0),
688688
Err(e) => panic!("Error retrieving TaskInfo: {}", e),
689-
};
689+
}
690690
}
691691

692692
#[cfg(target_os = "macos")]
@@ -697,7 +697,7 @@ mod test {
697697
match pidinfo::<TaskAllInfo>(pid, 0) {
698698
Ok(info) => assert!(info.ptinfo.pti_virtual_size > 0),
699699
Err(e) => panic!("Error retrieving TaskAllInfo: {}", e),
700-
};
700+
}
701701
}
702702

703703
#[cfg(target_os = "macos")]
@@ -706,7 +706,7 @@ mod test {
706706
match pidinfo::<ThreadInfo>(0, 0) {
707707
Ok(info) => assert!(!info.pth_name.is_empty()),
708708
Err(e) => panic!("Error retrieving ThreadInfo: {}", e),
709-
};
709+
}
710710
}
711711

712712
#[cfg(target_os = "macos")]
@@ -715,7 +715,7 @@ mod test {
715715
match pidinfo::<WorkQueueInfo>(1, 0) {
716716
Ok(info) => assert!(info.pwq_nthreads > 0),
717717
Err(e) => panic!("{}: {}", "Error retrieving WorkQueueInfo", e),
718-
};
718+
}
719719
}
720720

721721
#[cfg(target_os = "macos")]
@@ -731,7 +731,7 @@ mod test {
731731
}
732732
if let Ok(fds) = listpidinfo::<ListFDs>(pid, info.pbsd.pbi_nfiles as usize) {
733733
assert!(!fds.is_empty());
734-
};
734+
}
735735
}
736736
}
737737

0 commit comments

Comments
 (0)