mirror of https://git.sr.ht/~garritfra/taurus
Browse Source
This patch adds `#[from]` to `TaurusError::InvalidCertificate` which means that any `native_tls::Error` can be converted (using `From` and `Into`) to a `TaurusError::InvalidCertificate`. From what I can see, [here][native_tls_error_docs], the `native_tls::Error` type is kind of a catch all for errors from that lib rather than being broken down into suberrors (like `io::Error`) [native_tls_error_docs]: https://docs.rs/native-tls/0.2.6/native_tls/struct.Error.html Signed-off-by: Josh Leeb-du Toit <mail@joshleeb.com>master
Josh Leeb-du Toit
4 years ago
committed by
Garrit Franke
2 changed files with 3 additions and 4 deletions
Loading…
Reference in new issue