From 9a4c80732451bc85236a70501eccb0a7d85fa219 Mon Sep 17 00:00:00 2001 From: Xiaochun Tong Date: Thu, 2 Nov 2023 02:31:19 -0400 Subject: [PATCH] format code --- luisa_compute/src/runtime.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/luisa_compute/src/runtime.rs b/luisa_compute/src/runtime.rs index ae6ffe8..310c95d 100644 --- a/luisa_compute/src/runtime.rs +++ b/luisa_compute/src/runtime.rs @@ -255,11 +255,7 @@ impl Device { } /// Imports an external buffer of `count` elements of type `T`. - pub unsafe fn import_external_buffer( - &self, - data: *mut T, - count: usize, - ) -> Buffer { + pub unsafe fn import_external_buffer(&self, data: *mut T, count: usize) -> Buffer { self._create_buffer(data as *mut c_void, count) } pub fn create_buffer_from_slice(&self, data: &[T]) -> Buffer {