chore(deps): bump breaking deps (#14570)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
DaniPopes
2025-02-19 12:36:15 +01:00
committed by GitHub
parent 1e40e2dca2
commit c9a348dd2c
27 changed files with 304 additions and 233 deletions

View File

@ -37,7 +37,7 @@ thiserror.workspace = true
tempfile = { workspace = true, optional = true }
derive_more.workspace = true
rustc-hash = { workspace = true, optional = true }
sysinfo = { version = "0.32", default-features = false, features = ["system"] }
sysinfo = { version = "0.33", default-features = false, features = ["system"] }
parking_lot = { workspace = true, optional = true }
# arbitrary utils

View File

@ -112,7 +112,7 @@ impl ProcessUID {
system.refresh_processes_specifics(
sysinfo::ProcessesToUpdate::Some(&[pid2]),
true,
ProcessRefreshKind::new(),
ProcessRefreshKind::nothing(),
);
system.process(pid2).map(|process| Self { pid, start_time: process.start_time() })
}
@ -141,9 +141,11 @@ impl ProcessUID {
/// Whether a process with this `pid` and `start_time` exists.
fn is_active(&self) -> bool {
System::new_with_specifics(RefreshKind::new().with_processes(ProcessRefreshKind::new()))
.process(self.pid.into())
.is_some_and(|p| p.start_time() == self.start_time)
System::new_with_specifics(
RefreshKind::nothing().with_processes(ProcessRefreshKind::nothing()),
)
.process(self.pid.into())
.is_some_and(|p| p.start_time() == self.start_time)
}
/// Writes `pid` and `start_time` to a file.