rgis
rgis copied to clipboard
Error[E0308]: mismatched types when installing
When I an installing in my Macbook m2, the following error happened,
error[E0308]: mismatched types
--> rgis-renderer/src/systems.rs:15:9
|
15 | / job_spawner.spawn(MeshBuildingJob {
16 | | layer_id: layer.id,
17 | | geometry: feature_collection.to_geometry_collection_geometry(),
18 | | is_selected: false,
19 | | })
| | ^- help: consider using a semicolon here: `;`
| |__________|
| expected `()`, found `Entity`
For more information about this error, try `rustc --explain E0308`.
error: could not compile `rgis-renderer` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error[E0308]: mismatched types
--> rgis-file-loader/src/systems.rs:29:9
|
29 | / match event {
30 | | rgis_events::LoadFileEvent::FromNetwork {
31 | | url,
32 | | crs_epsg_code,
... |
49 | | }),
50 | | }
| | ^- help: consider using a semicolon here: `;`
| |_________|
| expected `()`, found `Entity`
error: could not compile `rgis-file-loader` (lib) due to 1 previous error
error: failed to compile `rgis v0.1.0 (https://github.com/frewsxcv/rgis#a7a9a046)`, intermediate artifacts can be found at `/var/folders/pz/gh4s4f393j734ncmdrkjm7q40000gn/T/cargo-installBdBsdh`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Which version of Rust are you using? It's compiling fine for me on macOS
Rust version, rustc 1.78.0 (9b00956e5 2024-04-29)
I installed it succesfully with newse version of rust rustc 1.80.1 (3f5fd8dd4 2024-08-06)