diff --git a/Cargo.lock b/Cargo.lock index 02ca09826..ba2a2e3c3 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 4b35ceb99..ebdb829c7 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 989a3c861..66c131422 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 f346250c4..d27e22250 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 877a17a12..f663cba43 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;