diff --git a/src/device/lib.rs b/src/device/lib.rs index 99be8087acb..a6976880184 100644 --- a/src/device/lib.rs +++ b/src/device/lib.rs @@ -215,8 +215,7 @@ impl BufferHandle { /// Get the associated information about the buffer pub fn get_info(&self) -> &BufferInfo { - let Handle(_, ref info) = self.raw; - info + self.raw.get_info() } /// Get the number of elements in the buffer.