-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Misc cleanups #52764
Misc cleanups #52764
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
if line.annotations.is_empty() || line.annotations.iter() | ||
.filter(|a| !a.is_line()).collect::<Vec<_>>().len() == 0 | ||
{ | ||
if line.annotations.iter().all(|a| a.is_line()) { |
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.
Shouldn't this be line.annotations.is_empty() || line.annotations.iter().all(|a| a.is_line())
?
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.
Iterator::all
returns true
for an empty iterator.
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.
Ah, ok; nice 👌.
@sinkuu I doubt that your changes broke |
There was actually an error. The bot quoted irrevant parts of the log. |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@bors r+ |
📌 Commit e995a91 has been approved by |
☀️ Test successful - status-appveyor, status-travis |
No description provided.