duplicate email check and address clippy warnings

This commit is contained in:
realaravinth
2021-07-11 21:46:50 +05:30
parent 1d1b9e650f
commit b7ec1bca22
24 changed files with 118 additions and 120 deletions

View File

@@ -94,10 +94,10 @@ mod tests {
#[actix_rt::test]
async fn error_pages_work() {
let mut app = test::init_service(App::new().configure(services)).await;
let app = test::init_service(App::new().configure(services)).await;
let resp = test::call_service(
&mut app,
&app,
test::TestRequest::get()
.uri(PAGES.errors.internal_server_error)
.to_request(),
@@ -106,7 +106,7 @@ mod tests {
assert_eq!(resp.status(), StatusCode::INTERNAL_SERVER_ERROR);
let resp = test::call_service(
&mut app,
&app,
test::TestRequest::get()
.uri(PAGES.errors.unknown_error)
.to_request(),