From 0f48313565ed2620efbd9d0f2203b57f8f126e6a Mon Sep 17 00:00:00 2001 From: Satya Rohith Date: Fri, 14 Jun 2024 17:10:57 +0530 Subject: chore: upgrade to rust 1.79 (#24207) --- ext/node/ops/crypto/mod.rs | 1 + ext/node/ops/crypto/x509.rs | 4 +++- ext/node/ops/os/cpus.rs | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'ext/node') diff --git a/ext/node/ops/crypto/mod.rs b/ext/node/ops/crypto/mod.rs index f39fb6d10..53a3ea3f0 100644 --- a/ext/node/ops/crypto/mod.rs +++ b/ext/node/ops/crypto/mod.rs @@ -1424,6 +1424,7 @@ pub const EC_OID: const_oid::ObjectIdentifier = // } pub struct PssPrivateKeyParameters<'a> { pub hash_algorithm: rsa::pkcs8::AlgorithmIdentifierRef<'a>, + #[allow(dead_code)] pub mask_gen_algorithm: rsa::pkcs8::AlgorithmIdentifierRef<'a>, pub salt_length: u32, } 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<'_>>(cert) + }, pem, }; diff --git a/ext/node/ops/os/cpus.rs b/ext/node/ops/os/cpus.rs index 2e3d2a954..9de4f1ff3 100644 --- a/ext/node/ops/os/cpus.rs +++ b/ext/node/ops/os/cpus.rs @@ -106,7 +106,7 @@ pub fn cpu_info() -> Option> { cpu.times.irq = 0; - cpu.model = model.clone(); + cpu.model.clone_from(&model); cpu.speed = cpu_speed / 1000000; } -- cgit v1.2.3