diff --git a/crates/libs/bindgen/src/rust/constants.rs b/crates/libs/bindgen/src/rust/constants.rs index 5acca64b9e..e537c84a77 100644 --- a/crates/libs/bindgen/src/rust/constants.rs +++ b/crates/libs/bindgen/src/rust/constants.rs @@ -43,8 +43,6 @@ pub fn writer(writer: &Writer, def: Field) -> TokenStream { let value = if underlying_type == constant_type { value - } else if writer.std && underlying_type == Type::ISize { - quote! { ::core::ptr::invalid_mut(#value as _) } } else { quote! { #value as _ } };