From 6d9318bf96915320f25bc2853c72c5205d7f2c05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Mon, 18 Sep 2023 00:09:38 +0200 Subject: [PATCH] clippy == good boi --- src/components/trips/todos/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/trips/todos/mod.rs b/src/components/trips/todos/mod.rs index 4742bf1..2d284c7 100644 --- a/src/components/trips/todos/mod.rs +++ b/src/components/trips/todos/mod.rs @@ -953,7 +953,7 @@ impl crud::Toggle for StateUpdate { reference: Self::Reference, value: bool, ) -> Result<(), crate::Error> { - Todo::update(&ctx, &pool, reference, UpdateElement::State(value.into())).await?; + Todo::update(ctx, pool, reference, UpdateElement::State(value.into())).await?; Ok(()) } } @@ -1025,7 +1025,7 @@ impl route::ToggleHtmx for StateUpdate { value: bool, ) -> Result, crate::Error> { let todo_item = Todo::find( - &ctx, + ctx, &state.database_pool, Reference { id: Id(todo_id),