Replace all uses and implementations of new() with default()
This commit is contained in:
parent
315956e20d
commit
6b739d93c2
15 changed files with 100 additions and 84 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue