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

Compile error (outdated dependencies) #42

@stephenctw

Description

@stephenctw

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions