Skip to content

Commit f64bc57

Browse files
committed
Fix compile warnings
1 parent 308b166 commit f64bc57

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl Drop for FullCache {
4848
}
4949

5050
pub struct FullVM {
51-
cache: Arc<FullCache>,
51+
_cache: Arc<FullCache>,
5252
ptr: *mut sys::randomx_vm,
5353
}
5454

@@ -66,7 +66,7 @@ impl FullVM {
6666
)
6767
};
6868

69-
Self { cache, ptr }
69+
Self { _cache: cache, ptr }
7070
}
7171

7272
pub fn calculate(&mut self, input: &[u8]) -> [u8; HASH_SIZE] {

sys/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fn main() {
3131
// bindings for.
3232
.header("randomx/src/randomx.h")
3333
// Workaround for https://github.com/servo/rust-bindgen/issues/550
34-
.hide_type("max_align_t")
34+
.blacklist_type("max_align_t")
3535
// Finish the builder and generate the bindings.
3636
.generate()
3737
// Unwrap the Result and panic on failure.

0 commit comments

Comments
 (0)