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