mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 18:15:39 +00:00
chore: lints
This commit is contained in:
@@ -14,8 +14,6 @@
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
use std::borrow::Cow;
|
||||
|
||||
use actix_identity::Identity;
|
||||
use actix_web::{web, HttpResponse, Responder};
|
||||
use db_core::UpdateEmail;
|
||||
|
||||
@@ -20,7 +20,6 @@ use argon2_creds::Config;
|
||||
use db_core::Login;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::api::v1::auth::runners::Password;
|
||||
use crate::errors::*;
|
||||
use crate::*;
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ pub mod runners {
|
||||
let p = db_core::Register {
|
||||
username: &username,
|
||||
hash: &hash,
|
||||
email: payload.email.as_ref().map(|s| s.as_str()),
|
||||
email: payload.email.as_deref(),
|
||||
secret: &secret,
|
||||
};
|
||||
|
||||
|
||||
@@ -73,10 +73,7 @@ impl Health {
|
||||
/// checks all components of the system
|
||||
#[my_codegen::get(path = "crate::V1_API_ROUTES.meta.health")]
|
||||
async fn health(data: AppData) -> impl Responder {
|
||||
use sqlx::Connection;
|
||||
|
||||
let mut resp_builder = HealthBuilder::default();
|
||||
resp_builder.redis = None;
|
||||
|
||||
resp_builder.db(data.dblib.ping().await);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user