We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 308b166 commit f64bc57Copy full SHA for f64bc57
src/lib.rs
@@ -48,7 +48,7 @@ impl Drop for FullCache {
48
}
49
50
pub struct FullVM {
51
- cache: Arc<FullCache>,
+ _cache: Arc<FullCache>,
52
ptr: *mut sys::randomx_vm,
53
54
@@ -66,7 +66,7 @@ impl FullVM {
66
)
67
};
68
69
- Self { cache, ptr }
+ Self { _cache: cache, ptr }
70
71
72
pub fn calculate(&mut self, input: &[u8]) -> [u8; HASH_SIZE] {
sys/build.rs
@@ -31,7 +31,7 @@ fn main() {
31
// bindings for.
32
.header("randomx/src/randomx.h")
33
// Workaround for https://github.com/servo/rust-bindgen/issues/550
34
- .hide_type("max_align_t")
+ .blacklist_type("max_align_t")
35
// Finish the builder and generate the bindings.
36
.generate()
37
// Unwrap the Result and panic on failure.
0 commit comments