chore: lints

This commit is contained in:
realaravinth
2022-05-11 20:11:11 +05:30
parent 96995bc068
commit f165581e17
8 changed files with 4 additions and 13 deletions

View File

@@ -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;

View File

@@ -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::*;

View File

@@ -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,
};

View File

@@ -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);