From ccf605f0861ea4f45353b5ac3a71e741ae1dc38d Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Thu, 17 Aug 2023 15:26:15 +0200 Subject: [PATCH] openpgp-card-sequoia: make Card::new private --- openpgp-card-sequoia/src/lib.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/openpgp-card-sequoia/src/lib.rs b/openpgp-card-sequoia/src/lib.rs index 0ee8fa8..be6fdf3 100644 --- a/openpgp-card-sequoia/src/lib.rs +++ b/openpgp-card-sequoia/src/lib.rs @@ -264,11 +264,8 @@ impl Card { } impl<'a> Card> { - /// Do not use! - /// - /// FIXME: this interface is currently used in `card-functionality`, for testing. - /// It will be removed. - pub fn new(mut opt: OpenPgpTransaction<'a>) -> Result { + // Internal constructor + fn new(mut opt: OpenPgpTransaction<'a>) -> Result { let ard = opt.application_related_data()?; Ok(Self {