clippy == good boi
This commit is contained in:
@@ -953,7 +953,7 @@ impl crud::Toggle for StateUpdate {
|
|||||||
reference: Self::Reference,
|
reference: Self::Reference,
|
||||||
value: bool,
|
value: bool,
|
||||||
) -> Result<(), crate::Error> {
|
) -> Result<(), crate::Error> {
|
||||||
Todo::update(&ctx, &pool, reference, UpdateElement::State(value.into())).await?;
|
Todo::update(ctx, pool, reference, UpdateElement::State(value.into())).await?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1025,7 +1025,7 @@ impl route::ToggleHtmx for StateUpdate {
|
|||||||
value: bool,
|
value: bool,
|
||||||
) -> Result<Response<BoxBody>, crate::Error> {
|
) -> Result<Response<BoxBody>, crate::Error> {
|
||||||
let todo_item = Todo::find(
|
let todo_item = Todo::find(
|
||||||
&ctx,
|
ctx,
|
||||||
&state.database_pool,
|
&state.database_pool,
|
||||||
Reference {
|
Reference {
|
||||||
id: Id(todo_id),
|
id: Id(todo_id),
|
||||||
|
|||||||
Reference in New Issue
Block a user