We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d3e0c1 commit 5cf7c64Copy full SHA for 5cf7c64
crates/stackable-certs/src/cert_builder.rs
@@ -347,8 +347,7 @@ mod tests {
347
.signed_by(&ca)
348
.validity(Duration::from_days_unchecked(366))
349
.build()
350
- .err()
351
- .expect("Certificate creation must error");
+ .expect_err("Certificate creation must error");
352
assert!(matches!(err, CreateCertificateError::CertOutlivesCa { .. }));
353
}
354
0 commit comments