Skip to content
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

Add missing unwrap()s #753

Merged
merged 2 commits into from
Mar 5, 2024
Merged

Add missing unwrap()s #753

merged 2 commits into from
Mar 5, 2024

Conversation

akhi3030
Copy link
Contributor

@akhi3030 akhi3030 commented Mar 4, 2024

tx.send() returns a Result which must be used otherwise the compiler produces warnings.

`tx.send()` returns a `Result` which must be used otherwise the compiler produces warnings.
Comment on lines 178 to 179
// send() returns a `Result` which cannot be ignored.
tx.send("sending from first handle").await.unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks! I don't think the comment is necessary for the documentation. It explains your change well, but I don't think someone who sees it with unwrap() from the beginning will be confused about it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense, I removed the comments.

@akhi3030 akhi3030 requested a review from Darksonn March 5, 2024 09:02
Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

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

Thank you.

@Darksonn Darksonn merged commit ab33e69 into tokio-rs:master Mar 5, 2024
6 checks passed
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