We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ExprKind::MethodCall
2 parents a8968e5 + 09022bb commit 998c780Copy full SHA for 998c780
book/src/development/method_checking.md
@@ -21,7 +21,7 @@ use clippy_utils::is_trait_method;
21
impl<'tcx> LateLintPass<'tcx> for OurFancyMethodLint {
22
fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'_>) {
23
// Check our expr is calling a method with pattern matching
24
- if let hir::ExprKind::MethodCall(path, _, [self_arg, ..]) = &expr.kind
+ if let hir::ExprKind::MethodCall(path, _, [self_arg, ..], _) = &expr.kind
25
// Check if the name of this method is `our_fancy_method`
26
&& path.ident.name.as_str() == "our_fancy_method"
27
// We can check the type of the self argument whenever necessary.
0 commit comments