From 5360fe6a337145b2640ec1e5727c97fd9bbeacd9 Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:24 +0100 Subject: refactor(all): small fixes --- stockton-skeleton/src/buffers/staging.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'stockton-skeleton/src/buffers/staging.rs') diff --git a/stockton-skeleton/src/buffers/staging.rs b/stockton-skeleton/src/buffers/staging.rs index 5c80f51..44d0c2d 100644 --- a/stockton-skeleton/src/buffers/staging.rs +++ b/stockton-skeleton/src/buffers/staging.rs @@ -61,15 +61,11 @@ where /// Map the given range to CPU-visible memory, returning a pointer to the start of that range. /// inner_range is local to this block of memory, not to the container as a whole. pub fn map(&mut self, device: &mut DeviceT, inner_range: Range) -> Result<*mut u8> { - Ok(<

::Block>::map( - &mut *self.mem, - device, - inner_range, - )?) + <

::Block>::map(&mut *self.mem, device, inner_range) } /// Remove any mappings present for this staging buffer. - pub unsafe fn unmap(&mut self, device: &mut DeviceT) -> Result<()> { + pub fn unmap(&mut self, device: &mut DeviceT) -> Result<()> { self.mem.unmap(device) } -- cgit v1.2.3