cargo fmt
ci/woodpecker/push/e2e Pipeline was successful
ci/woodpecker/push/fmt Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
2026-08-01 23:05:37 -04:00
parent fbb49bc560
commit 279cdb869d
2 changed files with 10 additions and 23 deletions
+3 -16
View File
@@ -237,11 +237,7 @@ pub fn meal_picker(meals: &[Meal], list_id: i64, csrf_token: &str) -> Markup {
}
}
pub fn meal_form_page(
user: &User,
meal: Option<&Meal>,
csrf_token: &str,
) -> Markup {
pub fn meal_form_page(user: &User, meal: Option<&Meal>, csrf_token: &str) -> Markup {
let (title, action, name, description) = match meal {
Some(meal) => (
"Edit meal",
@@ -276,12 +272,7 @@ pub fn meal_form_page(
)
}
pub fn meal_page(
user: &User,
meal: &Meal,
categories: &[Category],
csrf_token: &str,
) -> Markup {
pub fn meal_page(user: &User, meal: &Meal, categories: &[Category], csrf_token: &str) -> Markup {
page(
&meal.name,
Some(user),
@@ -743,11 +734,7 @@ fn category_options(categories: &[Category], selected: Option<i64>) -> Markup {
}
}
pub fn categories_panel(
categories: &[Category],
csrf_token: &str,
out_of_band: bool,
) -> Markup {
pub fn categories_panel(categories: &[Category], csrf_token: &str, out_of_band: bool) -> Markup {
let panel = html! {
div class="panel-heading" {
h2 { "Categories" }