summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2024-01-23 14:05:59 +0100
committerJustus Winter <justus@sequoia-pgp.org>2024-01-23 15:42:06 +0100
commitfd20bf577dbc4c8762219f39110c4dd5df5a1fd8 (patch)
tree640e9bc7ff0f0a9d369765665960900228d96d07
parenta73597bd0ae1ba251c3f3d19850083c751ef804d (diff)
Fix example.
- Previously, the if let was infallible, and rightfully flagged by rustc.
-rw-r--r--openpgp/src/cert/raw.rs4
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);
//! }
//! }
//!