Fix list syntax

This commit is contained in:
clerie 2024-07-27 21:26:24 +02:00
parent 22c963b037
commit bf7eb1a411

View File

@ -131,7 +131,7 @@ async fn route_index(
out.push_str("<html><body><ul>\n"); out.push_str("<html><body><ul>\n");
for (id, station) in state.stations.into_iter() { for (id, station) in state.stations.into_iter() {
out.push_str(&format!("<li><a href=\"/station/{}\">{}</a><li>\n", id, station.name)); out.push_str(&format!("<li><a href=\"/station/{}\">{}</a></li>\n", id, station.name));
} }
out.push_str("</ul></body></html>\n"); out.push_str("</ul></body></html>\n");
@ -152,7 +152,7 @@ async fn route_station_overview(
out.push_str("<html><body><ul>\n"); out.push_str("<html><body><ul>\n");
for (dest_station_id, dest_station) in state.stations.into_iter() { for (dest_station_id, dest_station) in state.stations.into_iter() {
out.push_str(&format!("<li><a href=\"/station/{}/to/{}\">{}</a><li>\n", station, dest_station_id, dest_station.name)); out.push_str(&format!("<li><a href=\"/station/{}/to/{}\">{}</a></li>\n", station, dest_station_id, dest_station.name));
} }
out.push_str("<html><body><ul>\n"); out.push_str("<html><body><ul>\n");