From e4ee29860690ddec855ff18442d70ceaf7b97940 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Feb 2022 15:58:27 +0000 Subject: [PATCH] chore(deps): bump sysinfo from 0.22.5 to 0.23.0 Bumps [sysinfo](https://github.com/GuillaumeGomez/sysinfo) from 0.22.5 to 0.23.0. - [Release notes](https://github.com/GuillaumeGomez/sysinfo/releases) - [Changelog](https://github.com/GuillaumeGomez/sysinfo/blob/master/CHANGELOG.md) - [Commits](https://github.com/GuillaumeGomez/sysinfo/commits) --- updated-dependencies: - dependency-name: sysinfo dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Cargo.lock | 4 ++-- komorebi/Cargo.toml | 2 +- komorebi/src/main.rs | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 974a12d3..b8835578 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1137,9 +1137,9 @@ dependencies = [ [[package]] name = "sysinfo" -version = "0.22.5" +version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f1bfab07306a27332451a662ca9c8156e3a9986f82660ba9c8e744fe8455d43" +checksum = "9e757000a4bed2b1be9be65a3f418b9696adf30bb419214c73997422de73a591" dependencies = [ "cfg-if 1.0.0", "core-foundation-sys", diff --git a/komorebi/Cargo.toml b/komorebi/Cargo.toml index 13cb289c..77eb80e4 100644 --- a/komorebi/Cargo.toml +++ b/komorebi/Cargo.toml @@ -29,7 +29,7 @@ paste = "1" serde = { version = "1", features = ["derive"] } serde_json = "1" strum = { version = "0.23", features = ["derive"] } -sysinfo = "0.22" +sysinfo = "0.23" tracing = "0.1" tracing-appender = "0.2" tracing-subscriber = { version = "0.3", features = ["env-filter"] } diff --git a/komorebi/src/main.rs b/komorebi/src/main.rs index b433fdc1..c4678a03 100644 --- a/komorebi/src/main.rs +++ b/komorebi/src/main.rs @@ -25,6 +25,7 @@ use lazy_static::lazy_static; use parking_lot::deadlock; use parking_lot::Mutex; use serde::Serialize; +use sysinfo::Process; use sysinfo::ProcessExt; use sysinfo::SystemExt; use tracing_appender::non_blocking::WorkerGuard; @@ -359,7 +360,7 @@ fn main() -> Result<()> { let mut system = sysinfo::System::new_all(); system.refresh_processes(); - let matched_procs = system.process_by_name("komorebi.exe"); + let matched_procs: Vec<&Process> = system.processes_by_name("komorebi.exe").collect(); if matched_procs.len() > 1 { let mut shim_is_active = false;