Skip to content

Commit

Permalink
Fix port type in config
Browse files Browse the repository at this point in the history
  • Loading branch information
2e3s committed Nov 7, 2024
1 parent 21acaea commit e2ee19f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion watchers/src/watchers/kwin_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit e2ee19f

Please sign in to comment.