Skip to content

Commit 5c8b3eb

Browse files
committed
Elide default implementation in CertificateBuilder.
1 parent b16b741 commit 5c8b3eb

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/lib/certificates/builder.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use crate::sensitive_attributes::SensitiveAttributeBuilder;
1717
///
1818
/// This builder extends the base X.509 certificate builder with support
1919
/// for Keeta KYC attributes, both plain text and sensitive (encrypted).
20-
#[derive(Debug)]
20+
#[derive(Debug, Default)]
2121
pub struct CertificateBuilder {
2222
/// The underlying X.509 certificate builder
2323
inner: X509CertificateBuilder,
@@ -218,12 +218,6 @@ impl CertificateBuilder {
218218
}
219219
}
220220

221-
impl Default for CertificateBuilder {
222-
fn default() -> Self {
223-
Self { inner: X509CertificateBuilder::new(), kyc_attributes: HashMap::new() }
224-
}
225-
}
226-
227221
#[cfg(test)]
228222
mod tests {
229223
use accounts::IntoSecret;

0 commit comments

Comments
 (0)