openpgp-card: Transaction::card_caps doesn't need to be mut

This commit is contained in:
Heiko Schaefer 2023-08-29 15:05:32 +02:00
parent f659a623d2
commit 315aa7a94c
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -255,7 +255,7 @@ impl Card {
/// before they are automatically closed.) /// before they are automatically closed.)
pub struct Transaction<'a> { pub struct Transaction<'a> {
tx: Box<dyn CardTransaction + Send + Sync + 'a>, tx: Box<dyn CardTransaction + Send + Sync + 'a>,
card_caps: &'a mut Option<CardCaps>, card_caps: &'a Option<CardCaps>,
} }
impl<'a> Transaction<'a> { impl<'a> Transaction<'a> {