We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
manual_ok_err
1 parent fce41f7 commit f9f5789Copy full SHA for f9f5789
webpki-roots/tests/codegen.rs
@@ -115,10 +115,7 @@ fn name_to_string(name: &X509Name) -> String {
115
let mut append_attrs = |attrs: Vec<&AttributeTypeAndValue>, label| {
116
let str_parts = attrs
117
.iter()
118
- .filter_map(|attr| match attr.as_str() {
119
- Ok(s) => Some(s),
120
- Err(_) => None,
121
- })
+ .filter_map(|attr| attr.as_str().ok())
122
.collect::<Vec<_>>()
123
.join("/");
124
if !str_parts.is_empty() {
0 commit comments