From 0e244e16f0147443d7c6a338565910c00e0510fb Mon Sep 17 00:00:00 2001 From: Arnaud <104520680+r-n-o@users.noreply.github.com> Date: Mon, 11 May 2026 13:37:50 -0500 Subject: [PATCH] Fix docstring for `Certificate::generate_self_signed` (#632) --- src/certificate.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/certificate.rs b/src/certificate.rs index 132c474..6879a2c 100644 --- a/src/certificate.rs +++ b/src/certificate.rs @@ -96,9 +96,8 @@ impl Certificate { /// Creates a new self-signed certificate for the given key. Writes the resulting /// certificate to the slot before returning it. /// - /// `extensions` is optional; if empty, no extensions will be included. Due to the - /// need for an `O: Oid` type parameter, users who do not have any extensions should - /// use the workaround `let extensions: &[x509_cert::Extension<'_, &[u64]>] = &[];`. + /// `extensions` is a required argument; users who do not have any extensions + /// should set the `extensions` argument to `|_| Ok(())`. pub fn generate_self_signed( yubikey: &mut YubiKey, key: SlotId,