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()
|
"data/logs".to_string()
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Config {
|
impl Default for Config {
|
||||||
pub fn default() -> Self {
|
fn default() -> Self {
|
||||||
from_str("()").unwrap()
|
from_str("()").unwrap()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ use chrono::Weekday;
|
||||||
use common::utils::substitute_with_names;
|
use common::utils::substitute_with_names;
|
||||||
use gloo::events::EventListener;
|
use gloo::events::EventListener;
|
||||||
use wasm_bindgen_futures::spawn_local;
|
use wasm_bindgen_futures::spawn_local;
|
||||||
use web_sys::{Element, HtmlElement, HtmlInputElement};
|
use web_sys::{Element, HtmlInputElement};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
calendar, modal_dialog,
|
calendar, modal_dialog,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue