aboutsummaryrefslogtreecommitdiff
path: root/stockton-skeleton/src/buffers/staging.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:24 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:24 +0100
commit5360fe6a337145b2640ec1e5727c97fd9bbeacd9 (patch)
tree264f4cda45b001fb5049b9120d4d7b3a63c95e6f /stockton-skeleton/src/buffers/staging.rs
parent0ddc1e39dc24cff636defbbbab974967bb5301b8 (diff)
refactor(all): small fixes
Diffstat (limited to 'stockton-skeleton/src/buffers/staging.rs')
-rw-r--r--stockton-skeleton/src/buffers/staging.rs8
1 files changed, 2 insertions, 6 deletions
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<u64>) -> Result<*mut u8> {
- Ok(<<P as MemoryPool>::Block>::map(
- &mut *self.mem,
- device,
- inner_range,
- )?)
+ <<P as MemoryPool>::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)
}