chore(fmt): run clippy fix
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-08-20 14:09:15 +02:00
parent e6084a7f4e
commit 57d30f2129
4 changed files with 15 additions and 15 deletions

View File

@@ -101,7 +101,7 @@ impl Auth for NoopAuthService {
todo!()
}
async fn get_user_from_session(&self, cookie: &str) -> anyhow::Result<User> {
async fn get_user_from_session(&self, _cookie: &str) -> anyhow::Result<User> {
todo!()
}
}

View File

@@ -52,7 +52,7 @@ impl OAuthClient for NoopOAuthClient {
Ok(Url::parse("http://localhost:3000/auth/zitadel").unwrap())
}
async fn exchange(&self, code: &str) -> anyhow::Result<String> {
async fn exchange(&self, _code: &str) -> anyhow::Result<String> {
Ok(String::new())
}
}

View File

@@ -56,7 +56,7 @@ pub struct User {
#[async_trait]
impl Session for PostgresSessionService {
async fn insert_user(&self, id: &str, user_id: &str) -> anyhow::Result<String> {
async fn insert_user(&self, _id: &str, user_id: &str) -> anyhow::Result<String> {
let mut session = AxumSession::new();
session.insert(
"user",
@@ -98,11 +98,11 @@ pub struct InMemorySessionService {}
#[async_trait]
impl Session for InMemorySessionService {
async fn insert_user(&self, id: &str, user_id: &str) -> anyhow::Result<String> {
async fn insert_user(&self, _id: &str, _user_id: &str) -> anyhow::Result<String> {
todo!()
}
async fn get_user(&self, cookie: &str) -> anyhow::Result<Option<String>> {
async fn get_user(&self, _cookie: &str) -> anyhow::Result<Option<String>> {
todo!()
}
}