Clarify docs of CONFUSING_METHOD_TO_NUMERIC_CAST

This commit is contained in:
Guillaume Gomez 2025-05-07 21:42:21 +02:00
parent 06fa0452eb
commit a94abae911

View file

@ -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