Skip to content

Commit f9f5789

Browse files
committed
manual_ok_err clippy fix
1 parent fce41f7 commit f9f5789

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

webpki-roots/tests/codegen.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,7 @@ fn name_to_string(name: &X509Name) -> String {
115115
let mut append_attrs = |attrs: Vec<&AttributeTypeAndValue>, label| {
116116
let str_parts = attrs
117117
.iter()
118-
.filter_map(|attr| match attr.as_str() {
119-
Ok(s) => Some(s),
120-
Err(_) => None,
121-
})
118+
.filter_map(|attr| attr.as_str().ok())
122119
.collect::<Vec<_>>()
123120
.join("/");
124121
if !str_parts.is_empty() {

0 commit comments

Comments
 (0)