Fix port type in config

This commit is contained in:
Demmie 2024-11-07 10:03:12 -05:00
parent 21acaeaa35
commit e2ee19f494
No known key found for this signature in database
GPG Key ID: B06DAA3D432C6E9A
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ pub fn from_cli() -> anyhow::Result<RunnerConfig> {
.args([
arg!(-c --config <FILE> "Custom config file").value_parser(value_parser!(PathBuf)),
arg!(--port <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 <HOST> "Custom server host")

View File

@ -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");