Skip to content

Commit bac6958

Browse files
authored
Remove unecessary pointer dereferencing
1 parent 6360806 commit bac6958

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)