Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Commit

Permalink
Reduce Rust requirements for Pin usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Jan 24, 2020
1 parent e77cab1 commit a192f31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/future.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl<T> Future for GpuFuture<T>

fn poll(self: Pin<&mut Self>, context: &mut Context) -> Poll<Self::Output> {
// 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 = {
Expand Down

0 comments on commit a192f31

Please sign in to comment.