-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
unnecessary_lazy_eval
show suggestions on multiline lint
#8543
Conversation
r? @giraffate (rust-highfive has picked a reviewer for you, use r? to override) |
), | ||
applicability, | ||
); | ||
if let hir::ExprKind::MethodCall(_, _, span) = expr.kind { |
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.
Not the best way, but I'd prefer not to change this
rust-clippy/clippy_lints/src/methods/mod.rs
Line 2102 in b83c632
fn method_call<'tcx>(recv: &'tcx hir::Expr<'tcx>) -> Option<(&'tcx str, &'tcx [hir::Expr<'tcx>], Span)> { |
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.
Can the comment about it be added 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.
LGTM with nits
), | ||
applicability, | ||
); | ||
if let hir::ExprKind::MethodCall(_, _, span) = expr.kind { |
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.
Can the comment about it be added here?
@bors r+ Thanks! |
📌 Commit bd888d4 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Closes #8393
changelog: [
unnecessary_lazy_eval
] now shows suggestions for long-line lints