Skip to content

Commit 9dc0866

Browse files
KixironJoshua Nelson
authored and
Joshua Nelson
committed
Remove useless Default for ErrorPage
1 parent ffceb4e commit 9dc0866

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/web/mod.rs

-10
Original file line numberDiff line numberDiff line change
@@ -623,16 +623,6 @@ pub(crate) struct ErrorPage {
623623
pub status: Status,
624624
}
625625

626-
impl Default for ErrorPage {
627-
fn default() -> Self {
628-
Self {
629-
title: Cow::Borrowed(""),
630-
message: None,
631-
status: Status::NotFound,
632-
}
633-
}
634-
}
635-
636626
impl_webpage! {
637627
ErrorPage = "error.html",
638628
status = |err| err.status,

0 commit comments

Comments
 (0)