From 4d9c3a1d5879845aaab0082f41062e593e8c65d3 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Sun, 27 Apr 2025 13:14:14 +0300 Subject: [PATCH] chore: comment styling --- src/config.rs | 4 ++-- src/main.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config.rs b/src/config.rs index 633f5a4..865393f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -50,12 +50,12 @@ impl Config { pub async fn from_str(s: &str) -> Result> { let config: Config = toml::from_str(s)?; - // Verify interface + // Verify interface. if IpAddr::from_str(&config.interface).is_err() { return Err(Box::new(ConfigError::InvalidInterface)); } - // Verify notifiers target services that exist + // Verify notifiers target services that exist. for notifier in config.notifiers.values() { for service in ¬ifier.services { if !config.services.contains_key(service) { diff --git a/src/main.rs b/src/main.rs index b6c8921..347ba52 100644 --- a/src/main.rs +++ b/src/main.rs @@ -32,10 +32,10 @@ const LICENSE_HTML: &str = include_str!("../static/license.html"); #[derive(Parser)] #[command(version)] struct Args { - /// Config file location + /// Config file location. #[arg(short, long, default_value = "./canwa.toml")] config: String, - /// Don't run the main program, useful for config validation + /// Don't run the main program, useful for config validation. #[arg(long)] dry_run: bool, } -- 2.44.1