From 903219a7d2b368dddb2406ec35c27fa5d2e912ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Sun, 17 Sep 2023 22:48:44 +0200 Subject: [PATCH] clippy --- 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 020cceb..5f84881 100644 --- a/src/components/trips/todos/mod.rs +++ b/src/components/trips/todos/mod.rs @@ -902,7 +902,7 @@ impl crud::Toggle for StateUpdate { id: Self::Id, value: bool, ) -> Result<(), crate::Error> { - Todo::update(&ctx, &pool, filter, id, UpdateElement::State(value.into())).await?; + Todo::update(ctx, pool, filter, id, UpdateElement::State(value.into())).await?; Ok(()) } } @@ -980,7 +980,7 @@ impl route::ToggleHtmx for StateUpdate { (trip_id, todo_id): (Uuid, Uuid), value: bool, ) -> Result, crate::Error> { - let todo_item = Todo::find(&ctx, &state.database_pool, Filter { trip_id }, Id(todo_id)) + let todo_item = Todo::find(ctx, &state.database_pool, Filter { trip_id }, Id(todo_id)) .await? .ok_or_else(|| { crate::Error::Request(RequestError::NotFound {