diff --git a/ee/tabby-webserver/src/service/auth.rs b/ee/tabby-webserver/src/service/auth.rs index fd6a4e388ec7..d5fa1e7405dc 100644 --- a/ee/tabby-webserver/src/service/auth.rs +++ b/ee/tabby-webserver/src/service/auth.rs @@ -1,20 +1,17 @@ -use anyhow::{Result}; +use anyhow::Result; use argon2::{ password_hash, password_hash::{rand_core::OsRng, SaltString}, Argon2, PasswordHasher, PasswordVerifier, }; use async_trait::async_trait; - use validator::Validate; use super::db::DbConn; -use crate::schema::{ - auth::{ - generate_jwt, validate_jwt, AuthenticationService, Claims, Invitation, - RefreshTokenResponse, RegisterError, RegisterResponse, TokenAuthError, TokenAuthResponse, - UserInfo, VerifyTokenResponse, - }, +use crate::schema::auth::{ + generate_jwt, validate_jwt, AuthenticationService, Claims, Invitation, RefreshTokenResponse, + RegisterError, RegisterResponse, TokenAuthError, TokenAuthResponse, UserInfo, + VerifyTokenResponse, }; /// Input parameters for register mutation diff --git a/ee/tabby-webserver/src/service/db.rs b/ee/tabby-webserver/src/service/db.rs index a05667019828..d80d64a75358 100644 --- a/ee/tabby-webserver/src/service/db.rs +++ b/ee/tabby-webserver/src/service/db.rs @@ -309,10 +309,8 @@ impl DbConn { #[cfg(test)] mod tests { - - use super::*; - use crate::schema::auth::{AuthenticationService}; + use crate::schema::auth::AuthenticationService; static ADMIN_EMAIL: &str = "test@example.com"; static ADMIN_PASSWORD: &str = "123456789";