anguschiu: A self-portrait generated using Memoji (Default)
anguschiu ([personal profile] anguschiu) wrote in [personal profile] diziet 2023-08-31 09:30 am (UTC)

Some questions regarding to run the program locally

Dear diziet,

Your work is inspiring! I am also a cyclist in Cambridge as well, plus I am learning Rust "ferociously" hence I am very interested to understand your program (so I can learn to build one that suit my need!)

However, after updated the package dependencies, I realised that it may need some changes to make it compile:


error[E0609]: no field route on type Gpx --> src/main.rs:409:17 | 409 | gpx.route.points.push(waypoint); | ^^^^^ help: a field with a similar name exists: routes

error[E0609]: no field route on type Gpx --> src/main.rs:415:52 | 415 | eprintln!("wrote {} (#{})", &filename, gpx.route.points.len()); | ^^^^^ help: a field with a similar name exists: routes

error[E0609]: no field route on type Gpx --> src/main.rs:426:17 | 426 | gpx.route.points.push(point); | ^^^^^ help: a field with a similar name exists: routes

error[E0609]: no field route on type Gpx --> src/main.rs:428:13 | 428 | gpx.route.name = Some(format!("circle")); | ^^^^^ help: a field with a similar name exists: routes

For more information about this error, try rustc --explain E0609. error: could not compile scanner (bin "scanner") due to 4 previous errors


Hope I am not asking trivial questions, but I cannot get to fix it when I dug into the doc in gpx library. Would you kindly suggest where I can start to look at?

Thank you and wish you have a good day! Regards, Angus


Post a comment in response:

(will be screened)
(will be screened if not on Access List)
(will be screened if not on Access List)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting