Skip to content

Commit 6cfe216

Browse files
author
enri1196
committed
fix clippy
1 parent 442a4c1 commit 6cfe216

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

openssl-sys/src/handwritten/cms.rs

+1
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,6 @@ extern "C" {
6363
flags: c_uint,
6464
) -> c_int;
6565

66+
#[cfg(ossl101)]
6667
pub fn CMS_get0_type(cms: *const CMS_ContentInfo) -> *const ASN1_OBJECT;
6768
}

openssl/src/cms.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ impl CmsContentInfo {
282282
pub fn get_type(&self) -> &Asn1ObjectRef {
283283
unsafe {
284284
let asn1_type = ffi::CMS_get0_type(self.as_ptr() as *const _);
285-
&Asn1ObjectRef::from_const_ptr(asn1_type)
285+
Asn1ObjectRef::from_const_ptr(asn1_type)
286286
}
287287
}
288288
}

0 commit comments

Comments
 (0)