diff --git a/mcaptcha/api/v1/account/delete/fn.services.html b/mcaptcha/api/v1/account/delete/fn.services.html index acde1951..fc502ffa 100644 --- a/mcaptcha/api/v1/account/delete/fn.services.html +++ b/mcaptcha/api/v1/account/delete/fn.services.html @@ -1,5 +1,5 @@ mcaptcha::api::v1::account::delete::services - Rust

Function mcaptcha::api::v1::account::delete::services[][src]

pub fn services(cfg: &mut ServiceConfig)
+ Change settings

Function mcaptcha::api::v1::account::delete::services[][src]

pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/delete/index.html b/mcaptcha/api/v1/account/delete/index.html index 8b84f7a5..c1f23efd 100644 --- a/mcaptcha/api/v1/account/delete/index.html +++ b/mcaptcha/api/v1/account/delete/index.html @@ -1,7 +1,7 @@ mcaptcha::api::v1::account::delete - Rust

Module mcaptcha::api::v1::account::delete[][src]

Structs

+ Change settings

Module mcaptcha::api::v1::account::delete[][src]

Structs

delete_account

Functions

services
\ No newline at end of file diff --git a/src/mcaptcha/api/v1/account/delete.rs.html b/src/mcaptcha/api/v1/account/delete.rs.html index 24f866ea..5c66e132 100644 --- a/src/mcaptcha/api/v1/account/delete.rs.html +++ b/src/mcaptcha/api/v1/account/delete.rs.html @@ -68,15 +68,6 @@ 65 66 67 -68 -69 -70 -71 -72 -73 -74 -75 -76
 /*
 * Copyright (C) 2021  Aravinth Manivannan <realaravinth@batsense.net>
@@ -137,22 +128,13 @@
                 Err(ServiceError::WrongPassword)
             }
         }
-        Err(RowNotFound) => return Err(ServiceError::UsernameNotFound),
-        Err(_) => return Err(ServiceError::InternalServerError),
+        Err(RowNotFound) => Err(ServiceError::UsernameNotFound),
+        Err(_) => Err(ServiceError::InternalServerError),
     }
 }
 
 pub fn services(cfg: &mut actix_web::web::ServiceConfig) {
     cfg.service(delete_account);
-    //    use crate::define_resource;
-    //    use crate::V1_API_ROUTES;
-    //
-    //    define_resource!(
-    //        cfg,
-    //        V1_API_ROUTES.account.delete,
-    //        Methods::ProtectPost,
-    //        delete_account
-    //    );
 }
 
diff --git a/src/mcaptcha/api/v1/auth.rs.html b/src/mcaptcha/api/v1/auth.rs.html index 199c3d28..144da2fa 100644 --- a/src/mcaptcha/api/v1/auth.rs.html +++ b/src/mcaptcha/api/v1/auth.rs.html @@ -321,7 +321,7 @@ } }; - if payload.login.contains("@") { + if payload.login.contains('@') { #[derive(Clone, Debug)] struct EmailLogin { name: String, diff --git a/src/mcaptcha/api/v1/meta.rs.html b/src/mcaptcha/api/v1/meta.rs.html index 195807c5..b48a2b4e 100644 --- a/src/mcaptcha/api/v1/meta.rs.html +++ b/src/mcaptcha/api/v1/meta.rs.html @@ -298,7 +298,7 @@ assert_eq!(resp.status(), StatusCode::OK); let health_resp: Health = test::read_body_json(resp).await; - assert_eq!(health_resp.db, true); + assert!(health_resp.db); assert_eq!(health_resp.redis, Some(true)); } }