diff --git a/src/config.rs b/src/config.rs index 736e667..92e49b8 100644 --- a/src/config.rs +++ b/src/config.rs @@ -52,7 +52,7 @@ pub fn from_cli() -> anyhow::Result { .args([ arg!(-c --config "Custom config file").value_parser(value_parser!(PathBuf)), arg!(--port "Custom server port") - .value_parser(value_parser!(u32)) + .value_parser(value_parser!(u16)) .default_value(defaults::port().to_string()), #[cfg(not(feature = "bundle"))] arg!(--host "Custom server host") diff --git a/watchers/src/watchers/kwin_window.rs b/watchers/src/watchers/kwin_window.rs index 1831785..083e260 100644 --- a/watchers/src/watchers/kwin_window.rs +++ b/watchers/src/watchers/kwin_window.rs @@ -13,7 +13,7 @@ use std::sync::{mpsc::channel, Arc}; use std::thread; use tokio::sync::Mutex; use zbus::interface; -use zbus::{Connection, conn::Builder as ConnectionBuilder}; +use zbus::{conn::Builder as ConnectionBuilder, Connection}; const KWIN_SCRIPT_NAME: &str = "activity_watcher"; const KWIN_SCRIPT: &str = include_str!("kwin_window.js");