diff --git a/rust-src/bch_bindgen/build.rs b/rust-src/bch_bindgen/build.rs index 819b337e..79337a0f 100644 --- a/rust-src/bch_bindgen/build.rs +++ b/rust-src/bch_bindgen/build.rs @@ -36,6 +36,7 @@ fn main() { .clang_arg("-DZSTD_STATIC_LINKING_ONLY") .clang_arg("-DNO_BCACHEFS_FS") .clang_arg("-D_GNU_SOURCE") + .clang_arg("-DRUST_BINDGEN") .clang_arg("-fkeep-inline-functions") .derive_debug(true) .derive_default(true) diff --git a/rust-src/bch_bindgen/src/btree.rs b/rust-src/bch_bindgen/src/btree.rs index c8203a42..09e86b34 100644 --- a/rust-src/bch_bindgen/src/btree.rs +++ b/rust-src/bch_bindgen/src/btree.rs @@ -7,7 +7,6 @@ use crate::printbuf_to_formatter; use std::fmt; use std::marker::PhantomData; use std::mem::MaybeUninit; -use std::ptr; use bitflags::bitflags; pub struct BtreeTrans<'f> {