DEVELOPMENT ENVIRONMENT

~liljamo/canwa

4d9c3a1d5879845aaab0082f41062e593e8c65d3 — Jonni Liljamo 2 days ago 6dafe02 master
chore: comment styling
2 files changed, 4 insertions(+), 4 deletions(-)

M src/config.rs
M src/main.rs
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 &notifier.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,
}