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

@@ -81,7 +81,7 @@ mod tests {
register_and_signin(NAME, EMAIL, PASSWORD).await;
let (data, _, _signin_resp, token_key) = add_levels_util(NAME, PASSWORD).await;
let mut app = get_app!(data).await;
let app = get_app!(data).await;
let get_config_payload = GetConfigPayload {
key: token_key.key.clone(),
@@ -90,7 +90,7 @@ mod tests {
// update and check changes
let get_config_resp = test::call_service(
&mut app,
&app,
post_request!(&get_config_payload, GET_URL).to_request(),
)
.await;
@@ -113,7 +113,7 @@ mod tests {
};
let pow_verify_resp = test::call_service(
&mut app,
&app,
post_request!(&work, VERIFY_CAPTCHA_URL).to_request(),
)
.await;
@@ -126,7 +126,7 @@ mod tests {
};
let validate_client_token = test::call_service(
&mut app,
&app,
post_request!(&validate_payload, VERIFY_TOKEN_URL).to_request(),
)
.await;
@@ -137,7 +137,7 @@ mod tests {
// string not found
let string_not_found = test::call_service(
&mut app,
&app,
post_request!(&validate_payload, VERIFY_TOKEN_URL).to_request(),
)
.await;
@@ -151,7 +151,7 @@ mod tests {
// key not found
let key_not_found = test::call_service(
&mut app,
&app,
post_request!(&validate_payload, VERIFY_TOKEN_URL).to_request(),
)
.await;