This repository was archived by the owner on May 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
This repository was archived by the owner on May 4, 2023. It is now read-only.
Compile error (outdated dependencies) #42
Copy link
Copy link
Open
Description
Hello, I am wondering if this project is still active. If so, could you update the dependencies? I run into this error trying to compile the example.
error[E0308]: mismatched types
--> /home/stephen/.cargo/git/checkouts/parity-dc9825eb65b3adf1/00b209a/ethcore/src/engines/authority_round/mod.rs:711:71
|
711 | io.register_timer_once(ENGINE_TIMEOUT_TOKEN, Duration::from_millis(remaining))
| ^^^^^^^^^ expected u64, found u128
help: you can convert an `u128` to `u64` and panic if the converted value wouldn't fit
|
711 | io.register_timer_once(ENGINE_TIMEOUT_TOKEN, Duration::from_millis(remaining.try_into().unwrap()))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/stephen/.cargo/git/checkouts/parity-dc9825eb65b3adf1/00b209a/ethcore/src/engines/authority_round/mod.rs:727:72
|
727 | io.register_timer_once(ENGINE_TIMEOUT_TOKEN, Duration::from_millis(next_run_at))
| ^^^^^^^^^^^ expected u64, found u128
help: you can convert an `u128` to `u64` and panic if the converted value wouldn't fit
|
727 | io.register_timer_once(ENGINE_TIMEOUT_TOKEN, Duration::from_millis(next_run_at.try_into().unwrap()))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors
rustc 1.39.0 (4560ea788 2019-11-04)
Thank you!
Metadata
Metadata
Assignees
Labels
No labels