-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Remove unnecessary unwraps #60720
Remove unnecessary unwraps #60720
Conversation
r? @pnkfelix (rust_highfive has picked a reviewer for you, use r? to override) |
String::new(), | ||
Applicability::MaybeIncorrect, | ||
); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only this change was needed, but avoiding the other unwrap
s is worthwhile.
r? @zackmdavis |
This comment has been minimized.
This comment has been minimized.
@bors r+ |
📌 Commit c158a0f has been approved by |
Needs test? |
@jethrogb good question! Unless someone can further minimize your motivating example to not need a dependency (so, no |
Remove unnecessary unwraps Fix rust-lang#60713.
The ideal thing would be to add a test but because it required two crates to repro writing it would have taken me a hit longer. Having said that the change should be good as it is, but thanks for keeping your eyes peeled @jethrogb and thanks @zackmdavid for the vote of confidence ^_^ |
Fix #60713.