From a94abae9118f004365a2c6b4ec2ae4b0f1ac43ce Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Wed, 7 May 2025 21:42:21 +0200 Subject: [PATCH] Clarify docs of `CONFUSING_METHOD_TO_NUMERIC_CAST` --- clippy_lints/src/casts/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/casts/mod.rs b/clippy_lints/src/casts/mod.rs index 6eac7ad438bd..16a1552c5eea 100644 --- a/clippy_lints/src/casts/mod.rs +++ b/clippy_lints/src/casts/mod.rs @@ -789,7 +789,7 @@ declare_clippy_lint! { declare_clippy_lint! { /// ### What it does - /// Checks for casts of a primitive method pointer to any integer type. + /// Checks for casts of a primitive method pointer like `max`/`min` to any integer type. /// /// ### Why restrict this? /// Casting a function pointer to an integer can have surprising results and can occur