Uh oh!
There was an error while loading. Please reload this page.
Refactor Option::filter method - #45933
Conversation
There was a problem hiding this comment.
Nitpicking: ; is unnecessary here.
There was a problem hiding this comment.
Yeah, Updated. Thanks
2419d80 to
abff092Comparealexcrichton
commented
Nov 12, 2017
@bors: r+ |
bors
commented
Nov 12, 2017
📌 Commit abff092 has been approved by |
…crichton Refactor Option::filter method
LukasKalbertodt
commented
Nov 15, 2017
What was the reason for this change? I don't really care that my code was changed, I just don't really understand why. I guess it's because it has fewer lines and only one |
bstrie
commented
Nov 15, 2017
@LukasKalbertodt I surmise it was just mildly more idiomatic to use |
Why not this so ? matchself{Some(x)ifpredicate(&x) => Some(x),
_ => None} |
sinkuu
commented
Nov 16, 2017
@Kerollmops That would be cetainly better, but currently impossible (produces an error E0008). |
Kerollmops
commented
Nov 16, 2017
Ho ! you're right ! sorry ! I hope the NLL will change this kind of error. |
No description provided.