Skip to content

Commit 224ad67

Browse files
committed
fix: Use Null variant instead of NulPointer
1 parent 921cb1a commit 224ad67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub mod error;
3030
fn null_error_check<T>(pointer: *const T) -> Result<(), crate::error::PointerError> {
3131
if pointer.is_null() {
3232
log::error!("Using a NULL pointer as an opaque pointer to Rust's data");
33-
return Err(crate::error::PointerError::NulPointer);
33+
return Err(crate::error::PointerError::Null);
3434
}
3535
return Ok(());
3636
}

0 commit comments

Comments
 (0)