Skip to content

Commit 5cf7c64

Browse files
committed
clippy
1 parent 3d3e0c1 commit 5cf7c64

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/stackable-certs/src/cert_builder.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,7 @@ mod tests {
347347
.signed_by(&ca)
348348
.validity(Duration::from_days_unchecked(366))
349349
.build()
350-
.err()
351-
.expect("Certificate creation must error");
350+
.expect_err("Certificate creation must error");
352351
assert!(matches!(err, CreateCertificateError::CertOutlivesCa { .. }));
353352
}
354353

0 commit comments

Comments
 (0)