We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30f0189 commit 8f721afCopy full SHA for 8f721af
rcgen/src/csr.rs
@@ -216,7 +216,7 @@ impl CertificateSigningRequestParams {
216
ext.set_criticality(val.critical);
217
params.custom_extensions.push(ext);
218
},
219
- other => {
+ _ => {
220
return Err(Error::UnsupportedExtension);
221
222
}
rcgen/tests/generic.rs
@@ -136,7 +136,7 @@ mod test_x509_custom_ext {
136
let csr_params = rcgen::CertificateSigningRequestParams::from_der_validated(
137
test_cert_csr.der(),
138
|ext| {
139
- if ext.oid != test_oid || ext.value != &test_ext || !ext.critical {
+ if ext.oid != test_oid || ext.value != test_ext || !ext.critical {
140
Err(rcgen::Error::UnsupportedExtension)
141
} else {
142
Ok(())
0 commit comments