-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Wake
example to use pin!
macro instead of Box::pin
#109965
Comments
@rustbot claim |
hey can u help me from where i can fix this |
Updating Wake example to use new 'pin!' macro Updating the example for the Wake trait to use `pin!` macro instead of `Box::pin`. rust-lang#109965
Can u tell me how u solve this? |
@AnuragNishad12 I have already solved this one and it is in the process of being reviewed for merging. If you wish to solve an issue, you need to pick one that has not been assigned yet. Try looking at this: https://github.com/rust-lang/rust/issues?q=is%3Aissue+is%3Aopen+label%3AE-easy+no%3Aassignee |
hey @madsravn im new to open source, i want to grow in this field . |
@AnuragNishad12 I am pretty new to this project myself, but please reach out if you have any starter-questions and then I might be able to help you out. There is a chat on https://rust-lang.zulipchat.com/ - I am just "Mads Ravn" in there. |
Thanks |
…lacrum Updating Wake example to use new 'pin!' macro Closes: rust-lang#109965 I have already had this reviewed and approved here: rust-lang#110026 . But because I had some git issues and chose the "nuke it" option as my solution it didn't get merged. I nuked it too quickly. I am sorry for trouble of reviewing twice.
Updating Wake example to use new 'pin!' macro Closes: rust-lang/rust#109965 I have already had this reviewed and approved here: rust-lang/rust#110026 . But because I had some git issues and chose the "nuke it" option as my solution it didn't get merged. I nuked it too quickly. I am sorry for trouble of reviewing twice.
Location
https://doc.rust-lang.org/std/task/trait.Wake.html#examples
Summary
The
Wake
example currently usesBox::pin
, but now that thepin!
macro has been stabilized in Rust 1.68, it should probably use that instead. This should be an easy contribution for someone who wants to land a first contribution.The text was updated successfully, but these errors were encountered: