Skip to content

Commit af862b8

Browse files
committed
fix: remove needless Ok wrapping to fix clippy needless_question_mark lint
Signed-off-by: Adam Burdett <burdettadam@gmail.com>
1 parent cdd7f22 commit af862b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/src/mdl/util.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,9 +670,9 @@ fn build_ds_subject(iaca_name: &Name, cn: &str) -> Result<Name> {
670670
let mut dn_parts = vec![format!("CN={cn}")];
671671
dn_parts.extend(non_cn);
672672
let dn_str = dn_parts.join(",");
673-
Ok(dn_str.parse().map_err(|e: x509_cert::der::Error| {
673+
dn_str.parse().map_err(|e: x509_cert::der::Error| {
674674
anyhow::anyhow!("Failed to build DS subject DN '{}': {:?}", dn_str, e)
675-
})?)
675+
})
676676
}
677677

678678
#[uniffi::export]

0 commit comments

Comments
 (0)