Implement Default trait for Config type

This commit is contained in:
Greg Burri 2025-04-29 18:09:58 +02:00
parent 7f94159852
commit fb62288161
2 changed files with 3 additions and 3 deletions

View file

@ -73,8 +73,8 @@ fn logs_directory_default() -> String {
"data/logs".to_string()
}
impl Config {
pub fn default() -> Self {
impl Default for Config {
fn default() -> Self {
from_str("()").unwrap()
}
}

View file

@ -2,7 +2,7 @@ use chrono::Weekday;
use common::utils::substitute_with_names;
use gloo::events::EventListener;
use wasm_bindgen_futures::spawn_local;
use web_sys::{Element, HtmlElement, HtmlInputElement};
use web_sys::{Element, HtmlInputElement};
use crate::{
calendar, modal_dialog,