Replace all uses and implementations of new() with default()

This commit is contained in:
Juno Takano 2026-01-05 13:16:46 -03:00
commit 6b739d93c2
15 changed files with 100 additions and 84 deletions

View file

@ -22,7 +22,7 @@ pub(in crate::router::handlers) fn by_code(
}
fn make_body(code: Option<u16>, message: Option<&str>) -> String {
let mut context = tera::Context::new();
let mut context = tera::Context::default();
let out_code = code.unwrap_or(500);
let out_message = &message.unwrap_or("Unknown error");