Skip to content

Commit 8f721af

Browse files
committed
Fix clippy
1 parent 30f0189 commit 8f721af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rcgen/src/csr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ impl CertificateSigningRequestParams {
216216
ext.set_criticality(val.critical);
217217
params.custom_extensions.push(ext);
218218
},
219-
other => {
219+
_ => {
220220
return Err(Error::UnsupportedExtension);
221221
},
222222
}

rcgen/tests/generic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ mod test_x509_custom_ext {
136136
let csr_params = rcgen::CertificateSigningRequestParams::from_der_validated(
137137
test_cert_csr.der(),
138138
|ext| {
139-
if ext.oid != test_oid || ext.value != &test_ext || !ext.critical {
139+
if ext.oid != test_oid || ext.value != test_ext || !ext.critical {
140140
Err(rcgen::Error::UnsupportedExtension)
141141
} else {
142142
Ok(())

0 commit comments

Comments
 (0)