Skip to content

Commit f4074ae

Browse files
authored
Merge pull request #193 from brunojppb/fix-remove-dereferencing
Fix: Remove unnecessary pointer dereferencing
2 parents 6360806 + bac6958 commit f4074ae

File tree

1 file changed

+1
-1
lines changed
  • examples/02_04_executor/src

1 file changed

+1
-1
lines changed

examples/02_04_executor/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ impl Executor {
9090
if let Some(mut future) = future_slot.take() {
9191
// Create a `LocalWaker` from the task itself
9292
let waker = waker_ref(&task);
93-
let context = &mut Context::from_waker(&*waker);
93+
let context = &mut Context::from_waker(&waker);
9494
// `BoxFuture<T>` is a type alias for
9595
// `Pin<Box<dyn Future<Output = T> + Send + 'static>>`.
9696
// We can get a `Pin<&mut dyn Future + Send + 'static>`

0 commit comments

Comments
 (0)