clean w/ clippy
This commit is contained in:
@ -27,10 +27,8 @@ async fn index(
|
||||
let boats = Boat::all_for_boatshouse(db).await;
|
||||
let mut final_boats = Vec::new();
|
||||
for boat in boats {
|
||||
if boat.boat.boathouse(db).await.is_none() {
|
||||
if boat.boat.name != "Externes Boot" {
|
||||
final_boats.push(boat);
|
||||
}
|
||||
if boat.boat.boathouse(db).await.is_none() && boat.boat.name != "Externes Boot" {
|
||||
final_boats.push(boat);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user