Format rust

This commit is contained in:
Andras Schmelczer 2026-01-31 13:57:43 +00:00
parent 0fde087c3d
commit f60fbec9d4
5 changed files with 191 additions and 94 deletions

View file

@ -42,7 +42,10 @@ async fn main() {
let poi_data = if poi_path.exists() {
data::POIData::load(&poi_path)
} else {
eprintln!("Warning: {} not found. POI endpoints will be unavailable.", poi_path.display());
eprintln!(
"Warning: {} not found. POI endpoints will be unavailable.",
poi_path.display()
);
data::POIData {
id: Vec::new(),
name: Vec::new(),
@ -93,7 +96,9 @@ async fn main() {
)
.route(
"/api/hexagon-properties",
get(move |query| routes::get_hexagon_properties(state_hexagon_properties.clone(), query)),
get(move |query| {
routes::get_hexagon_properties(state_hexagon_properties.clone(), query)
}),
);
// Static file serving for frontend