clippy_utils

Function fn_def_id

Source
pub fn fn_def_id(cx: &LateContext<'_>, expr: &Expr<'_>) -> Option<DefId>
Expand description

Returns the DefId of the callee if the given expression is a function or method call.