summaryrefslogtreecommitdiff
path: root/ext/node
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node')
-rw-r--r--ext/node/ops/crypto/mod.rs1
-rw-r--r--ext/node/ops/crypto/x509.rs4
-rw-r--r--ext/node/ops/os/cpus.rs2
3 files changed, 5 insertions, 2 deletions
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<'_>, 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<Vec<CpuInfo>> {
cpu.times.irq = 0;
- cpu.model = model.clone();
+ cpu.model.clone_from(&model);
cpu.speed = cpu_speed / 1000000;
}