Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragarnoy committed Oct 23, 2024
1 parent f11962e commit 3806657
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/num.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ impl AccComplex {
/// This function is unsafe because it dereferences a raw pointer.
/// The caller must ensure that the pointer is valid and points to a properly initialized `acc_int16_complex_t` struct.
pub unsafe fn from_ptr(ptr: *const acc_int16_complex_t) -> Self {
Self {
inner: *ptr,
}
Self { inner: *ptr }
}

/// Returns a mutable pointer to the inner `acc_int16_complex_t` struct.
Expand Down

0 comments on commit 3806657

Please sign in to comment.