Skip to content

Commit 78d8de5

Browse files
Update sysinfo to 0.30 (#1753)
1 parent 80ea231 commit 78d8de5

File tree

3 files changed

+27
-8
lines changed

3 files changed

+27
-8
lines changed

Cargo.lock

Lines changed: 24 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pgrx-tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ thiserror.workspace = true
6565
paste = "1"
6666
postgres = "0.19.7"
6767
proptest = { version = "1", optional = true }
68-
sysinfo = "0.29.10"
68+
sysinfo = "0.30.10"
6969
rand = "0.8.5"
7070

7171
[dependencies.pgrx] # Not unified in workspace due to default-features key

pgrx-tests/src/framework.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use std::io::{BufRead, BufReader, Write};
2424
use std::path::{Path, PathBuf};
2525
use std::sync::{Arc, Mutex, OnceLock};
2626
use std::time::Duration;
27-
use sysinfo::{Pid, ProcessExt, System, SystemExt};
27+
use sysinfo::{Pid, System};
2828

2929
mod shutdown;
3030
pub use shutdown::add_shutdown_hook;
@@ -868,7 +868,7 @@ fn get_cargo_args() -> Vec<String> {
868868
while let Some(process) = system.process(pid) {
869869
// only if it's "cargo"... (This works for now, but just because `cargo`
870870
// is at the end of the path. How *should* this handle `CARGO`?)
871-
if process.exe().ends_with("cargo") {
871+
if process.exe().is_some_and(|p| p.ends_with("cargo")) {
872872
// ... and only if it's "cargo test"...
873873
if process.cmd().iter().any(|arg| arg == "test")
874874
&& !process.cmd().iter().any(|arg| arg == "pgrx")

0 commit comments

Comments
 (0)