From ca5c852c5091d7923cc5b1dabf1af5581c459fd1 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 19 Mar 2026 05:41:14 +0100 Subject: chore(rocie-{server,client}): Format code --- crates/rocie-server/src/api/get/auth/product.rs | 6 ++++-- crates/rocie-server/src/api/set/auth/recipe.rs | 9 +-------- crates/rocie-server/src/storage/sql/get/recipe_parent/mod.rs | 4 +--- crates/rocie-server/tests/tests.rs | 2 +- 4 files changed, 7 insertions(+), 14 deletions(-) (limited to 'crates/rocie-server') diff --git a/crates/rocie-server/src/api/get/auth/product.rs b/crates/rocie-server/src/api/get/auth/product.rs index 85047b5..fcf49a8 100644 --- a/crates/rocie-server/src/api/get/auth/product.rs +++ b/crates/rocie-server/src/api/get/auth/product.rs @@ -12,11 +12,13 @@ use actix_identity::Identity; use actix_web::{HttpRequest, HttpResponse, Responder, Result, get, web}; use crate::{ - api::get::auth::UrlEncodedString, app::App, storage::sql::{ + api::get::auth::UrlEncodedString, + app::App, + storage::sql::{ product::{Product, ProductId, ProductIdStub}, product_amount::ProductAmount, product_parent::{ProductParent, ProductParentId, ProductParentIdStub}, - } + }, }; /// Get Product by id diff --git a/crates/rocie-server/src/api/set/auth/recipe.rs b/crates/rocie-server/src/api/set/auth/recipe.rs index 638c153..4e54e36 100644 --- a/crates/rocie-server/src/api/set/auth/recipe.rs +++ b/crates/rocie-server/src/api/set/auth/recipe.rs @@ -64,14 +64,7 @@ pub(crate) async fn add_recipe( let stub = stub.into_inner(); let mut ops = Operations::new("add recipe parent"); - let recipe = Recipe::new( - &app, - stub.name, - stub.parent, - stub.content, - &mut ops, - ) - .await?; + let recipe = Recipe::new(&app, stub.name, stub.parent, stub.content, &mut ops).await?; ops.apply(&app).await?; diff --git a/crates/rocie-server/src/storage/sql/get/recipe_parent/mod.rs b/crates/rocie-server/src/storage/sql/get/recipe_parent/mod.rs index 3bdbf04..6293696 100644 --- a/crates/rocie-server/src/storage/sql/get/recipe_parent/mod.rs +++ b/crates/rocie-server/src/storage/sql/get/recipe_parent/mod.rs @@ -10,9 +10,7 @@ use crate::{ app::App, - storage::sql::{ - recipe_parent::{RecipeParent, RecipeParentId}, - }, + storage::sql::recipe_parent::{RecipeParent, RecipeParentId}, }; use sqlx::query; diff --git a/crates/rocie-server/tests/tests.rs b/crates/rocie-server/tests/tests.rs index 57d58b2..da9f107 100644 --- a/crates/rocie-server/tests/tests.rs +++ b/crates/rocie-server/tests/tests.rs @@ -13,10 +13,10 @@ mod _testenv; pub(crate) use _testenv as testenv; +mod defaults; mod product_parents; mod products; mod recipe_parents; mod recipies; mod units; mod users; -mod defaults; -- cgit 1.4.1