M src/config.rs => src/config.rs +2 -2
@@ 50,12 50,12 @@ impl Config {
pub async fn from_str(s: &str) -> Result<Self, Box<dyn std::error::Error>> {
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) {
M src/main.rs => src/main.rs +2 -2
@@ 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,
}