feat: allow dead code
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2023-09-05 22:05:17 +02:00
parent cdeefba39a
commit 491ec81298
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394
4 changed files with 4 additions and 1 deletions

View File

@ -21,6 +21,7 @@ use serde_json::json;
#[derive(Debug, Deserialize)] #[derive(Debug, Deserialize)]
pub struct ZitadelAuthParams { pub struct ZitadelAuthParams {
#[allow(dead_code)]
return_url: Option<String>, return_url: Option<String>,
} }

View File

@ -118,7 +118,7 @@ impl Auth for NoopAuthService {
todo!() todo!()
} }
async fn login_token(&self, user: &str, password: &str) -> anyhow::Result<String> { async fn login_token(&self, _user: &str, _password: &str) -> anyhow::Result<String> {
todo!() todo!()
} }

View File

@ -125,6 +125,7 @@ impl IntrospectionStateBuilder {
self self
} }
#[allow(dead_code)]
pub fn with_jwt_profile(&mut self, application: Application) -> &mut IntrospectionStateBuilder { pub fn with_jwt_profile(&mut self, application: Application) -> &mut IntrospectionStateBuilder {
self.authentication = Some(AuthorityAuthentication::JWTProfile { application }); self.authentication = Some(AuthorityAuthentication::JWTProfile { application });

View File

@ -1,6 +1,7 @@
use axum::{http::StatusCode, response::IntoResponse, Json}; use axum::{http::StatusCode, response::IntoResponse, Json};
use serde_json::json; use serde_json::json;
#[allow(dead_code)]
#[derive(Debug)] #[derive(Debug)]
pub enum AppError { pub enum AppError {
WrongCredentials, WrongCredentials,