From 175b833d9643de7f195a601ad51cfc4a697cfeb5 Mon Sep 17 00:00:00 2001 From: Herbert Wolverson Date: Wed, 1 Feb 2023 18:56:58 +0000 Subject: [PATCH] Fix build issue from new version of system, another try at CI. --- .github/workflows/rust.yml | 2 +- src/rust/lqosd/src/file_lock.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 77da700b..9f0ffcd9 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -30,4 +30,4 @@ jobs: - name: Install tools run: pushd src/rust; cargo install cargo-outdated; popd - name: Check for outdated dependencies - run: pushd src/rust; cargo outdated -w --color=always --root-deps-only --exit-code 1 -v + script: cd src/rust; cargo outdated -w --color=always --root-deps-only --exit-code 1 diff --git a/src/rust/lqosd/src/file_lock.rs b/src/rust/lqosd/src/file_lock.rs index 4b829ec2..2ced72e3 100644 --- a/src/rust/lqosd/src/file_lock.rs +++ b/src/rust/lqosd/src/file_lock.rs @@ -40,7 +40,7 @@ impl FileLock { let pid: i32 = contents.parse()?; let sys = System::new_all(); - if let Some(process) = sys.processes().get(&Pid::from(pid)) { + if let Some(process) = sys.processes().get(pid) { if process.name().contains("lqosd") { return Ok(true); }