Implement Default trait for Config type
This commit is contained in:
parent
7f94159852
commit
fb62288161
2 changed files with 3 additions and 3 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue