From b83607ab429a624e5da1db4e971481715ce778d6 Mon Sep 17 00:00:00 2001 From: Justin Traglia Date: Wed, 12 Feb 2025 14:17:03 -0600 Subject: [PATCH] Fix rust feature check --- bindings/rust/src/bindings/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/rust/src/bindings/mod.rs b/bindings/rust/src/bindings/mod.rs index 7b840a32..e4f44743 100644 --- a/bindings/rust/src/bindings/mod.rs +++ b/bindings/rust/src/bindings/mod.rs @@ -19,6 +19,7 @@ use core::ffi::CStr; use core::fmt; use core::mem::MaybeUninit; use core::ops::{Deref, DerefMut}; +use core::ptr; #[cfg(feature = "std")] use alloc::ffi::CString; @@ -446,8 +447,7 @@ impl KZGSettings { pub fn compute_cells(&self, blob: &Blob) -> Result, Error> { let mut cells = [Cell::default(); CELLS_PER_EXT_BLOB]; unsafe { - let res = - compute_cells_and_kzg_proofs(cells.as_mut_ptr(), std::ptr::null_mut(), blob, self); + let res = compute_cells_and_kzg_proofs(cells.as_mut_ptr(), ptr::null_mut(), blob, self); if let C_KZG_RET::C_KZG_OK = res { Ok(Box::new(cells)) } else {