From a11dfa4e77fbc90938808da539de2834be57acf7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Jan 2024 14:48:46 +0000 Subject: [PATCH] chore(deps): bump sysinfo from 0.29.11 to 0.30.5 Bumps [sysinfo](https://github.com/GuillaumeGomez/sysinfo) from 0.29.11 to 0.30.5. - [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 | 6 +++--- komorebi/Cargo.toml | 2 +- komorebi/src/main.rs | 8 ++++---- komorebic/Cargo.toml | 2 +- komorebic/src/main.rs | 1 - 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 02ca0982..ba2a2e3c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1837,9 +1837,9 @@ dependencies = [ [[package]] name = "sysinfo" -version = "0.29.11" +version = "0.30.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd727fc423c2060f6c92d9534cef765c65a6ed3f428a03d7def74a8c4348e666" +checksum = "1fb4f3438c8f6389c864e61221cbc97e9bca98b4daf39a5beb7bea660f528bb2" dependencies = [ "cfg-if 1.0.0", "core-foundation-sys", @@ -1847,7 +1847,7 @@ dependencies = [ "ntapi", "once_cell", "rayon", - "winapi 0.3.9", + "windows", ] [[package]] diff --git a/komorebi/Cargo.toml b/komorebi/Cargo.toml index 4b35ceb9..ebdb829c 100644 --- a/komorebi/Cargo.toml +++ b/komorebi/Cargo.toml @@ -32,7 +32,7 @@ schemars = "0.8" serde = { version = "1", features = ["derive"] } serde_json = "1" strum = { version = "0.25", features = ["derive"] } -sysinfo = "0.29" +sysinfo = "0.30" 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 989a3c86..66c13142 100644 --- a/komorebi/src/main.rs +++ b/komorebi/src/main.rs @@ -35,8 +35,6 @@ use regex::Regex; use schemars::JsonSchema; use serde::Serialize; use sysinfo::Process; -use sysinfo::ProcessExt; -use sysinfo::SystemExt; use tracing_appender::non_blocking::WorkerGuard; use tracing_subscriber::layer::SubscriberExt; use tracing_subscriber::EnvFilter; @@ -484,8 +482,10 @@ fn main() -> Result<()> { if matched_procs.len() > 1 { let mut len = matched_procs.len(); for proc in matched_procs { - if proc.root().ends_with("shims") { - len -= 1; + if let Some(root) = proc.root() { + if root.ends_with("shims") { + len -= 1; + } } } diff --git a/komorebic/Cargo.toml b/komorebic/Cargo.toml index f346250c..d27e2225 100644 --- a/komorebic/Cargo.toml +++ b/komorebic/Cargo.toml @@ -28,7 +28,7 @@ reqwest = { version = "0.11", features = ["blocking"] } serde = { version = "1", features = ["derive"] } serde_json = "1" serde_yaml = "0.9" -sysinfo = "0.29" +sysinfo = "0.30" thiserror = "1" uds_windows = "1" which = "5" diff --git a/komorebic/src/main.rs b/komorebic/src/main.rs index 877a17a1..f663cba4 100644 --- a/komorebic/src/main.rs +++ b/komorebic/src/main.rs @@ -27,7 +27,6 @@ use miette::Report; use miette::SourceOffset; use miette::SourceSpan; use paste::paste; -use sysinfo::SystemExt; use uds_windows::UnixListener; use uds_windows::UnixStream; use which::which;