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

tokio-macros: compat with clippy::unwrap_used #3926

Merged

Conversation

blasrodri
Copy link
Contributor

Up until now there were a few places on the code where
both the macros tokio::test and tokio::main were unwrapping.

This patch changes .unwrap() for .expect(), to be compatible with
clippy::unwrap_used

Ref: #3887

Motivation

Solution

Up until now there were a few places on the code where
both the macros tokio::test and tokio::main were unwrapping.

This patch changes .unwrap() for .expect(), to be compatible with
clippy::unwrap_used

Ref: tokio-rs#3887
tokio-macros/src/entry.rs Outdated Show resolved Hide resolved
@Darksonn Darksonn added the A-tokio-macros Area: The tokio-macros crate label Jul 5, 2021
tokio-macros/src/entry.rs Outdated Show resolved Hide resolved
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.

Thanks.

@Darksonn Darksonn merged commit 80f0801 into tokio-rs:master Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio-macros Area: The tokio-macros crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants