remove warnings
This commit is contained in:
parent
c4b25e1415
commit
279daed555
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue