Skip to content

Commit 1aef16f

Browse files
committed
Fix clippy warning (redundant closure)
1 parent 475ca93 commit 1aef16f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/readcsr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fn read_csr_with_challenge_password() {
7474

7575
// 1. Check: Parse value
7676
let (rem, challenge_password_from_value) =
77-
Set::from_der_and_then(challenge_password_attr.value, |i| String::from_der(i))
77+
Set::from_der_and_then(challenge_password_attr.value, String::from_der)
7878
.expect("Error parsing challenge password attribute");
7979
assert_eq!(challenge_password_from_value, "A challenge password");
8080
assert!(rem.is_empty());

0 commit comments

Comments
 (0)