clean code with clippy

This commit is contained in:
2023-04-03 17:32:41 +02:00
parent ff73accb52
commit 79f22b9217
4 changed files with 150 additions and 21 deletions

View File

@ -1,17 +1,8 @@
use std::ops::Deref;
use argon2::{
password_hash::{rand_core::OsRng, SaltString},
Argon2, PasswordHash, PasswordHasher, PasswordVerifier,
};
use base64::{engine, prelude::BASE64_STANDARD_NO_PAD, Engine};
use rocket::{
request::{self, FromRequest},
Request,
};
use argon2::{password_hash::SaltString, Argon2, PasswordHasher};
use serde::Serialize;
use sqlx::{FromRow, SqlitePool};
#[derive(FromRow, Debug)]
#[derive(FromRow, Debug, Serialize)]
pub struct User {
id: i64,
name: String,