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

@@ -116,10 +116,10 @@ mod tests {
#[actix_rt::test]
async fn build_details_works() {
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(V1_API_ROUTES.meta.build_details)
.to_request(),
@@ -132,10 +132,10 @@ mod tests {
async fn health_works() {
println!("{}", V1_API_ROUTES.meta.health);
let data = Data::new().await;
let mut app = get_app!(data).await;
let app = get_app!(data).await;
let resp = test::call_service(
&mut app,
&app,
test::TestRequest::get()
.uri(V1_API_ROUTES.meta.health)
.to_request(),