diff options
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(()) } } } |