Skip to content

Commit

Permalink
fix(rust/signed-doc): simpler test closure
Browse files Browse the repository at this point in the history
  • Loading branch information
saibatizoku committed Feb 3, 2025
1 parent 6bf6274 commit ae94111
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions rust/signed_doc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,14 +400,6 @@ mod tests {
.build()
.unwrap();

assert!(signed_doc
.verify(|k| {
if k.to_string() == kid.to_string() {
pk
} else {
k.role0_pk()
}
})
.is_ok());
assert!(signed_doc.verify(|_| { pk }).is_ok());
}
}

0 comments on commit ae94111

Please sign in to comment.