From 3806657dbe195b42dd994bda687d954cfc2b8f1e Mon Sep 17 00:00:00 2001 From: ragarnoy Date: Wed, 23 Oct 2024 21:07:23 +0200 Subject: [PATCH] Formatting --- src/num.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/num.rs b/src/num.rs index b63a848..61c84a9 100644 --- a/src/num.rs +++ b/src/num.rs @@ -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.