From fd20bf577dbc4c8762219f39110c4dd5df5a1fd8 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 23 Jan 2024 14:05:59 +0100 Subject: Fix example. - Previously, the if let was infallible, and rightfully flagged by rustc. --- openpgp/src/cert/raw.rs | 4 +--- 1 file changed, 1 insertion(+), 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); //! } //! } //! -- cgit v1.2.3