about summary refs log tree commit diff
path: root/book/src/development/method_checking.md
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2025-01-09 18:00:37 +0100
committerPhilipp Krones <hello@philkrones.com>2025-01-09 18:00:37 +0100
commitb5bf09e57afa50a2ecc9bfc07bad4ef64d9df447 (patch)
treecf262aea51c147a0348a7112966198ea63fc0303 /book/src/development/method_checking.md
parent11f38ade90a2e1f9cee925260ffbe8bc0e3ad761 (diff)
parent894e87cd5160a2198940a35dc105ce6e46d9763e (diff)
downloadrust-b5bf09e57afa50a2ecc9bfc07bad4ef64d9df447.tar.gz
rust-b5bf09e57afa50a2ecc9bfc07bad4ef64d9df447.zip
Merge remote-tracking branch 'upstream/master' into rustup
Diffstat (limited to 'book/src/development/method_checking.md')
-rw-r--r--book/src/development/method_checking.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/book/src/development/method_checking.md b/book/src/development/method_checking.md
index 9c5d4b516db..b3126024b99 100644
--- a/book/src/development/method_checking.md
+++ b/book/src/development/method_checking.md
@@ -21,7 +21,7 @@ use clippy_utils::is_trait_method;
 impl<'tcx> LateLintPass<'tcx> for OurFancyMethodLint {
     fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'_>) {
         // Check our expr is calling a method with pattern matching
-        if let hir::ExprKind::MethodCall(path, _, [self_arg, ..]) = &expr.kind
+        if let hir::ExprKind::MethodCall(path, _, [self_arg, ..], _) = &expr.kind
             // Check if the name of this method is `our_fancy_method`
             && path.ident.name.as_str() == "our_fancy_method"
             // We can check the type of the self argument whenever necessary.