diff options
author | tcmal <me@aria.rip> | 2024-08-25 17:44:24 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-25 17:44:24 +0100 |
commit | 5360fe6a337145b2640ec1e5727c97fd9bbeacd9 (patch) | |
tree | 264f4cda45b001fb5049b9120d4d7b3a63c95e6f /stockton-skeleton/src/mem.rs | |
parent | 0ddc1e39dc24cff636defbbbab974967bb5301b8 (diff) |
refactor(all): small fixes
Diffstat (limited to 'stockton-skeleton/src/mem.rs')
-rw-r--r-- | stockton-skeleton/src/mem.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/stockton-skeleton/src/mem.rs b/stockton-skeleton/src/mem.rs index af0a42b..85bf295 100644 --- a/stockton-skeleton/src/mem.rs +++ b/stockton-skeleton/src/mem.rs @@ -92,15 +92,15 @@ mod rendy { /// So we can use rendy blocks as our blocks impl<T: RBlock<back::Backend>> Block for T { fn properties(&self) -> Properties { - <T as RBlock<back::Backend>>::properties(&self) + <T as RBlock<back::Backend>>::properties(self) } fn memory(&self) -> &MemoryT { - <T as RBlock<back::Backend>>::memory(&self) + <T as RBlock<back::Backend>>::memory(self) } fn range(&self) -> Range<u64> { - <T as RBlock<back::Backend>>::range(&self) + <T as RBlock<back::Backend>>::range(self) } } @@ -359,7 +359,8 @@ mod rendy { } fn unmap(&mut self, device: &mut DeviceT) -> Result<()> { - Ok(self.0.unmap(device)) + self.0.unmap(device); + Ok(()) } } } |