addressing clippy lints

This commit is contained in:
realaravinth
2021-06-11 23:39:38 +05:30
parent ffdd1865bb
commit dcfba60c86
23 changed files with 124 additions and 109 deletions

View File

@@ -221,12 +221,10 @@ impl ResponseError for PageError {
match self.status_code() {
StatusCode::INTERNAL_SERVER_ERROR => HttpResponse::Found()
.header(header::LOCATION, PAGES.errors.internal_server_error)
.finish()
.into(),
.finish(),
_ => HttpResponse::Found()
.header(header::LOCATION, PAGES.errors.unknown_error)
.finish()
.into(),
.finish(),
}
}