Skip to content

Commit a81cf5b

Browse files
committed
expect instead of snafu
1 parent 3962a16 commit a81cf5b

File tree

1 file changed

+2
-3
lines changed
  • crates/stackable-certs/src/ca

1 file changed

+2
-3
lines changed

crates/stackable-certs/src/ca/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,8 @@ where
208208
// We don't allow customization of the CA subject by callers. Every CA
209209
// created by us should contain the same subject consisting a common set
210210
// of distinguished names (DNs).
211-
let subject = Name::from_str(SDP_ROOT_CA_SUBJECT).context(ParseSubjectSnafu {
212-
subject: SDP_ROOT_CA_SUBJECT,
213-
})?;
211+
let subject = Name::from_str(SDP_ROOT_CA_SUBJECT)
212+
.expect("The SDP_ROOT_CA_SUBJECT must be a valid subject");
214213

215214
let spki_pem = signing_key_pair
216215
.verifying_key()

0 commit comments

Comments
 (0)