Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Compile error (outdated dependencies) #42

Open
stephenctw opened this issue Apr 8, 2020 · 0 comments
Open

Compile error (outdated dependencies) #42

stephenctw opened this issue Apr 8, 2020 · 0 comments

Comments

@stephenctw
Copy link

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant