From 7a71f9b106e9c42b718b8c691b8c6054762879fc Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 20 Aug 2023 16:05:27 +0200 Subject: [PATCH] chore: fmt Signed-off-by: kjuulh --- como_api/src/controllers/auth.rs | 7 +------ como_infrastructure/src/services/item_service.rs | 6 +++++- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/como_api/src/controllers/auth.rs b/como_api/src/controllers/auth.rs index 91f103a..be727ac 100644 --- a/como_api/src/controllers/auth.rs +++ b/como_api/src/controllers/auth.rs @@ -1,12 +1,10 @@ - use std::fmt::Display; use crate::router::AppState; - use axum::extract::{FromRef, FromRequestParts, Query, State}; -use axum::headers::{Cookie}; +use axum::headers::Cookie; use axum::http::request::Parts; use axum::http::StatusCode; @@ -17,12 +15,9 @@ use axum::{async_trait, Json, RequestPartsExt, Router, TypedHeader}; use como_domain::users::User; use como_infrastructure::register::ServiceRegister; - - use serde::Deserialize; use serde_json::json; - #[derive(Debug, Deserialize)] pub struct ZitadelAuthParams { return_url: Option, diff --git a/como_infrastructure/src/services/item_service.rs b/como_infrastructure/src/services/item_service.rs index a8ebc8b..0b5e683 100644 --- a/como_infrastructure/src/services/item_service.rs +++ b/como_infrastructure/src/services/item_service.rs @@ -211,7 +211,11 @@ impl ItemService for MemoryItemService { todo!() } - async fn update_item(&self, _context: &Context, _item: UpdateItemDto) -> anyhow::Result { + async fn update_item( + &self, + _context: &Context, + _item: UpdateItemDto, + ) -> anyhow::Result { todo!() } }