From 37a8217163ba84c18f8663f36ab0fcf72003cd55 Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Thu, 23 Jan 2020 20:00:55 -0500 Subject: [PATCH] [rs] Reduce Rust requirements for Pin usage --- wgpu/src/future.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu/src/future.rs b/wgpu/src/future.rs index 614cc9146b..ecf2b4390c 100644 --- a/wgpu/src/future.rs +++ b/wgpu/src/future.rs @@ -25,7 +25,7 @@ impl Future for GpuFuture fn poll(self: Pin<&mut Self>, context: &mut Context) -> Poll { // grab a clone of the Arc - let arc = Arc::clone(&Pin::into_inner(self).inner); + let arc = Arc::clone(&self.get_mut().inner); // grab the device id and set the waker, but release the lock, so that the native callback can write to it let device_id = {