Skip to content

Upstream rand_core breaks x-wing #185

@karalabe

Description

@karalabe

There's a new version of the upstream rand_core package which seems to break this library when not pinned:

error[E0599]: no method named `unwrap_mut` found for mutable reference `&mut R` in the current scope
  --> ~/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/x-wing-0.1.0-pre.3/src/lib.rs:87:62
   |
87 |         let ek_x = EphemeralSecret::random_from_rng(&mut rng.unwrap_mut());
   |                                                              ^^^^^^^^^^
   |
help: there is a method `unwrap_err` with a similar name
   |
87 -         let ek_x = EphemeralSecret::random_from_rng(&mut rng.unwrap_mut());
87 +         let ek_x = EphemeralSecret::random_from_rng(&mut rng.unwrap_err());

I can fix it locally by pinning rand_core, but would be nice to update the calls.

rand_core = { version = "=0.10.0-rc-3", default-features = false }

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