remove warnings

This commit is contained in:
SeanOMik 2023-05-29 23:37:27 -04:00
parent c4b25e1415
commit 279daed555
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
use std::{sync::Arc, collections::{HashMap, BTreeMap}, time::{SystemTime, UNIX_EPOCH}};
use std::{sync::Arc, collections::{HashMap, BTreeMap}, time::SystemTime};
use axum::{extract::{Query, State}, response::{IntoResponse, Response}, http::{StatusCode, header}, Form};
use axum_auth::AuthBasic;
@ -12,10 +12,10 @@ use sha2::Sha256;
use rand::Rng;
use crate::{dto::{scope::Scope, user::{UserAuth, TokenInfo}}, app_state::AppState};
use crate::{dto::{scope::Scope, user::TokenInfo}, app_state::AppState};
use crate::database::Database;
use crate::auth::{unauthenticated_response, AuthDriver};
use crate::auth::unauthenticated_response;
#[derive(Deserialize, Debug)]
pub struct TokenAuthRequest {

View File

@ -14,7 +14,6 @@ pub mod tags;
pub mod catalog;
pub mod auth;
use crate::auth::AuthToken;
use crate::dto::user::UserAuth;
/// https://docs.docker.com/registry/spec/api/#api-version-check

View File

@ -128,6 +128,7 @@ pub struct RegistryUser {
repository_permissions: HashMap<String, RepositoryPermissions>,
}
#[allow(dead_code)]
impl RegistryUser {
pub fn new(user_type: RegistryUserType, repository_permissions: HashMap<String, RepositoryPermissions>) -> Self {
Self {