diff --git a/crates/cust/src/memory/device/device_buffer.rs b/crates/cust/src/memory/device/device_buffer.rs index d4fcd5b2..c2c689cb 100644 --- a/crates/cust/src/memory/device/device_buffer.rs +++ b/crates/cust/src/memory/device/device_buffer.rs @@ -329,7 +329,9 @@ impl DeviceBuffer { buf: self.buf.cast(), len: new_len, }); - unsafe{std::mem::forget(self);} + unsafe { + std::mem::forget(self); + } ret } else { Err(PodCastError::OutputSliceWouldHaveSlop)