Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gateway: upgrade harsh lib #259

Open
Terkwood opened this issue Apr 30, 2020 · 0 comments
Open

gateway: upgrade harsh lib #259

Terkwood opened this issue Apr 30, 2020 · 0 comments
Labels
tech-debt Lib upgrades, Carryover from prior decisions, &c

Comments

@Terkwood
Copy link
Owner

API for harsh lib changed

error[E0308]: mismatched types
  --> src/compact_ids.rs:31:9
   |
30 |       pub fn decode(self) -> Option<Uuid> {
   |                              ------------ expected `std::option::Option<uuid::Uuid>` because of return type
31 | /         HARSH.decode(self.0).map(|xy| {
32 | |             let x = xy[0];
33 | |             let y = xy[1];
34 | |             let chunk_one = u64::to_be_bytes(x);
...  |
47 | |             Uuid::from_bytes(bytes)
48 | |         })
   | |__________^ expected enum `std::option::Option`, found enum `std::result::Result`
   |
   = note: expected enum `std::option::Option<uuid::Uuid>`
              found enum `std::result::Result<uuid::Uuid, harsh::harsh::HarshError>`
@Terkwood Terkwood added the tech-debt Lib upgrades, Carryover from prior decisions, &c label Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech-debt Lib upgrades, Carryover from prior decisions, &c
Projects
None yet
Development

No branches or pull requests

1 participant