-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Replace option_try macros and match with ? operator #46602
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
Conversation
Could you also replace:
Thanks! |
Updated to replace |
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.
r=me after Travis is passing.
src/librustdoc/html/format.rs
Outdated
} | ||
None => return None, | ||
None => { | ||
let &(ref fqp, shortty)) = cache.external_paths.get(&did)?; |
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.
There’s an extra )
here
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.
Fixed.
@bors r=kennytm |
📌 Commit 3024c14 has been approved by |
Replace option_try macros and match with ? operator None
☀️ Test successful - status-appveyor, status-travis |
A nice reduction of lines count. |
No description provided.