Skip to content

Commit bb45758

Browse files
committed
Correct safety.
1 parent 056aba1 commit bb45758

File tree

1 file changed

+3
-3
lines changed
  • crates/processing_ffi/src

1 file changed

+3
-3
lines changed

crates/processing_ffi/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ pub extern "C" fn processing_rect(
243243

244244
/// Create an image from raw pixel data.
245245
///
246-
/// SAFETY:
246+
/// # Safety
247247
/// - Init has been called.
248248
/// - data is a valid pointer to data_len bytes of RGBA pixel data.
249249
/// - This is called from the same thread as init.
@@ -271,7 +271,7 @@ pub unsafe extern "C" fn processing_image_create(
271271

272272
/// Load an image from a file path.
273273
///
274-
/// SAFETY:
274+
/// # Safety
275275
/// - Init has been called.
276276
/// - path is a valid null-terminated C string.
277277
/// - This is called from the same thread as init.
@@ -311,7 +311,7 @@ pub extern "C" fn processing_image_resize(image_id: u64, new_width: u32, new_hei
311311

312312
/// Load pixels from an image into a caller-provided buffer.
313313
///
314-
/// SAFETY:
314+
/// # Safety
315315
/// - Init and image_create have been called.
316316
/// - image_id is a valid ID returned from image_create.
317317
/// - buffer is a valid pointer to at least buffer_len Color elements.

0 commit comments

Comments
 (0)