Fix wasm build error that is somehow not showing up in abstreet web builds, only in bus_spotting

This commit is contained in:
Dustin Carlino 2022-05-31 10:18:11 +01:00
parent 7bb1016905
commit 7bdca2411f

View File

@ -54,7 +54,7 @@ fn parse_args() -> anyhow::Result<Vec<String>> {
// Consider using a proper url parsing crate. This works fine for now, though.
let url_parts = url.split("?").collect::<Vec<_>>();
if url_parts.len() != 2 {
bail!("URL {} doesn't seem to have query params");
bail!("URL {url} doesn't seem to have query params");
}
let parts = url_parts[1]
.split("&")