Compare commits

...

2 Commits

Author SHA1 Message Date
Eric Holk f4074aee6e
Merge pull request #193 from brunojppb/fix-remove-dereferencing
Fix: Remove unnecessary pointer dereferencing
2023-03-29 11:53:40 -07:00
Bruno Paulino bac695815a
Remove unecessary pointer dereferencing 2023-02-12 17:49:16 +01:00
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ impl Executor {
if let Some(mut future) = future_slot.take() {
// Create a `LocalWaker` from the task itself
let waker = waker_ref(&task);
let context = &mut Context::from_waker(&*waker);
let context = &mut Context::from_waker(&waker);
// `BoxFuture<T>` is a type alias for
// `Pin<Box<dyn Future<Output = T> + Send + 'static>>`.
// We can get a `Pin<&mut dyn Future + Send + 'static>`