jacklund / libmacaroon-rs

Rust Macaroon Library (deprecated, see README)
9 stars 7 forks source link

Change error type name in TryFrom trait #2

Closed mickaelvieira closed 7 years ago

mickaelvieira commented 7 years ago

Hi,

I was trying to use the library with rustc 1.21.0-nightly and I was getting the following error message:

error[E0437]: type `Err` is not a member of trait `TryFrom`
  --> src/serialization/v2j.rs:33:5
   |
33 |     type Err = MacaroonError;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `TryFrom`

Apparently the TryFrom trait definition has changed, see

This commit changes the source code to match the new trait definition.