diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2024-01-23 14:05:59 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2024-01-23 15:42:06 +0100 |
commit | fd20bf577dbc4c8762219f39110c4dd5df5a1fd8 (patch) | |
tree | 640e9bc7ff0f0a9d369765665960900228d96d07 /openpgp/src | |
parent | a73597bd0ae1ba251c3f3d19850083c751ef804d (diff) |
Fix example.
- Previously, the if let was infallible, and rightfully flagged by
rustc.
Diffstat (limited to 'openpgp/src')
-rw-r--r-- | openpgp/src/cert/raw.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/openpgp/src/cert/raw.rs b/openpgp/src/cert/raw.rs index bd981c24..22f2b5d1 100644 --- a/openpgp/src/cert/raw.rs +++ b/openpgp/src/cert/raw.rs @@ -54,9 +54,7 @@ //! //! if cert.fingerprint() == fpr { //! // Found it! Try to convert it to a Cert. -//! if let cert = Cert::try_from(cert) { -//! return cert; -//! } +//! return Cert::try_from(cert); //! } //! } //! |