summaryrefslogtreecommitdiff
path: root/ext/node/ops/crypto/x509.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/ops/crypto/x509.rs')
-rw-r--r--ext/node/ops/crypto/x509.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/node/ops/crypto/x509.rs b/ext/node/ops/crypto/x509.rs
index eefe1c6d0..8ae7c314d 100644
--- a/ext/node/ops/crypto/x509.rs
+++ b/ext/node/ops/crypto/x509.rs
@@ -63,7 +63,9 @@ pub fn op_node_x509_parse<'s>(
_buf: buf.to_vec(),
// SAFETY: Extending the lifetime of the certificate. Backing buffer is
// owned by the resource.
- cert: unsafe { std::mem::transmute(cert) },
+ cert: unsafe {
+ std::mem::transmute::<X509Certificate<'_>, X509Certificate<'_>>(cert)
+ },
pem,
};