Function clippy_utils::is_expr_identity_function
source · pub fn is_expr_identity_function(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool
Expand description
Checks if an expression represents the identity function
Only examines closures and std::convert::identity