Skip to content

Commit

Permalink
clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
StoicDeveloper committed Sep 30, 2023
1 parent 6421401 commit 6892653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion futures-util/src/stream/futures_keyed/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ impl<K: Hash + Eq, Fut> Deref for HashTask<K, Fut> {
impl<K: Hash + Eq, Fut> Borrow<K> for HashTask<K, Fut> {
fn borrow(&self) -> &K {
// Never use the borrowed form after the key has been removed from the task
// Never use Task in a context where this method may be called
// IE. The Stub task never goes into the HashSet
// Or removing Task from HashSet using key, after key removed from task
unsafe { (*self.key.get()).as_ref().unwrap() }
}
}
Expand Down

0 comments on commit 6892653

Please sign in to comment.