mirror of
https://github.com/2e3s/awatcher.git
synced 2025-06-04 02:20:15 +00:00
Fix port type in config
This commit is contained in:
parent
21acaeaa35
commit
e2ee19f494
@ -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")
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user