Clarify docs of CONFUSING_METHOD_TO_NUMERIC_CAST
This commit is contained in:
parent
06fa0452eb
commit
a94abae911
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue