summaryrefslogtreecommitdiff
path: root/ext/node/ops/crypto/x509.rs
diff options
context:
space:
mode:
authorSatya Rohith <me@satyarohith.com>2024-06-14 17:10:57 +0530
committerGitHub <noreply@github.com>2024-06-14 17:10:57 +0530
commit0f48313565ed2620efbd9d0f2203b57f8f126e6a (patch)
tree39e348917188b7524eadc138dfcf80f92a185ac6 /ext/node/ops/crypto/x509.rs
parente19ee6eecc416a99801231ac53f2c512ba1f81dd (diff)
chore: upgrade to rust 1.79 (#24207)
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,
};