clippy
This commit is contained in:
@@ -601,7 +601,7 @@ impl route::Create for Todo {
|
|||||||
trip.load_todos(&ctx, &state.database_pool).await?;
|
trip.load_todos(&ctx, &state.database_pool).await?;
|
||||||
Ok(list::List {
|
Ok(list::List {
|
||||||
trip: &trip,
|
trip: &trip,
|
||||||
todos: &trip.todos(),
|
todos: trip.todos(),
|
||||||
}
|
}
|
||||||
.build(list::BuildInput { edit_todo: None })
|
.build(list::BuildInput { edit_todo: None })
|
||||||
.into_response())
|
.into_response())
|
||||||
@@ -651,7 +651,7 @@ impl route::Delete for Todo {
|
|||||||
trip.load_todos(&ctx, &state.database_pool).await?;
|
trip.load_todos(&ctx, &state.database_pool).await?;
|
||||||
Ok(list::List {
|
Ok(list::List {
|
||||||
trip: &trip,
|
trip: &trip,
|
||||||
todos: &trip.todos(),
|
todos: trip.todos(),
|
||||||
}
|
}
|
||||||
.build(list::BuildInput { edit_todo: None })
|
.build(list::BuildInput { edit_todo: None })
|
||||||
.into_response())
|
.into_response())
|
||||||
|
|||||||
@@ -373,7 +373,7 @@ impl Trip {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
(TripInfo::build(trip_edit_attribute, trip))
|
(TripInfo::build(trip_edit_attribute, trip))
|
||||||
(crate::components::trips::todos::List{todos: trip.todos(), trip: &trip}.build(crate::components::trips::todos::list::BuildInput { edit_todo}))
|
(crate::components::trips::todos::List{todos: trip.todos(), trip}.build(crate::components::trips::todos::list::BuildInput { edit_todo}))
|
||||||
(TripComment::build(trip))
|
(TripComment::build(trip))
|
||||||
(TripItems::build(active_category, trip))
|
(TripItems::build(active_category, trip))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user