Reformat code

This commit is contained in:
Leonard Steppy 2025-02-14 03:50:48 +01:00
parent 91875dd607
commit 775cb0ca4e

View File

@ -7,13 +7,17 @@ use std::path::Path;
fn main() {
let out_dir = env::var_os("TRUNK_STAGING_DIR").unwrap_or("target".into());
create_config("session_config", &out_dir, &SessionConfig {
create_config(
"session_config",
&out_dir,
&SessionConfig {
motd: "Proben Dienstags um 18:30 Uhr und Sonntags um 10:00 Uhr".to_string(),
})
},
)
}
fn create_config<T, P>(name: &str, out_dir: P, default_config: &T)
where
where
T: Serialize,
P: AsRef<Path>,
{