Format rust
This commit is contained in:
parent
0fde087c3d
commit
f60fbec9d4
5 changed files with 191 additions and 94 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue