Skip to content

Conversation

koonpeng
Copy link
Collaborator

Not sure if it is just me but rust-analyzer thinks Promise is an Iterator and Promise::take conflicts with Iterator::take. Switched to the full form avoid the conflict.

Signed-off-by: Teo Koon Peng <[email protected]>
@koonpeng koonpeng requested a review from mxgrey February 18, 2025 07:26
Copy link
Contributor

@mxgrey mxgrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix!

I've been seeing this for a long time but I shrugged it off since it's clearly a bug in rust-analyzer rather than a bug in our code. But this is a great workaround 👍

@mxgrey mxgrey merged commit 0ee3fe2 into main Feb 18, 2025
6 checks passed
@mxgrey mxgrey deleted the koonpeng/fix-promise-iterator-conlfict branch February 18, 2025 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants