Skip to content

Commit

Permalink
Fix rust feature check
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraglia committed Feb 12, 2025
1 parent 8371877 commit b83607a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/rust/src/bindings/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -446,8 +447,7 @@ impl KZGSettings {
pub fn compute_cells(&self, blob: &Blob) -> Result<Box<[Cell; CELLS_PER_EXT_BLOB]>, 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 {
Expand Down

0 comments on commit b83607a

Please sign in to comment.