From e2ee19f4940cb32d74c70d724cdc43b28d808d49 Mon Sep 17 00:00:00 2001 From: Demmie <2e3s19@gmail.com> Date: Thu, 7 Nov 2024 10:03:12 -0500 Subject: [PATCH] Fix port type in config --- src/config.rs | 2 +- watchers/src/watchers/kwin_window.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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");