openpgp-card-sequoia: make Card<Transaction>::new private
This commit is contained in:
parent
dcf98c512c
commit
ccf605f086
1 changed files with 2 additions and 5 deletions
|
@ -264,11 +264,8 @@ impl Card<Open> {
|
|||
}
|
||||
|
||||
impl<'a> Card<Transaction<'a>> {
|
||||
/// 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<Self, Error> {
|
||||
// Internal constructor
|
||||
fn new(mut opt: OpenPgpTransaction<'a>) -> Result<Self, Error> {
|
||||
let ard = opt.application_related_data()?;
|
||||
|
||||
Ok(Self {
|
||||
|
|
Loading…
Reference in a new issue