Skip to content

Commit 28f69e1

Browse files
committed
Add temporary fix for rust-lang/rust#22356
1 parent b9ca884 commit 28f69e1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/device/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,11 @@ impl<D: Device, T> BufferHandle<D, T> {
207207
pub fn raw(&self) -> RawBufferHandle<D> {
208208
self.raw
209209
}
210-
}
211210

212-
// FIXME: These should be implemented over a generic `Device`, but we get a lifetime error
213-
impl<T> BufferHandle<back::GlDevice, T> {
214211
/// Get the associated information about the buffer
215212
pub fn get_info(&self) -> &BufferInfo {
216-
self.raw.get_info()
213+
let Handle(_, ref info) = self.raw;
214+
info
217215
}
218216

219217
/// Get the number of elements in the buffer.

0 commit comments

Comments
 (0)