pub static FUNCTION_CASTS_AS_INTEGER: &LintExpand description
The function_casts_as_integer lint detects cases where a function item is cast
to an integer.
§Example
fn foo() {}
let x = foo as usize;{{produces}}
§Explanation
When casting a function item to an integer, it implicitly creates a function pointer that will in turn be cast to an integer. By making it explicit, it improves readability of the code and prevents bugs.