Function clippy_utils::path_to_local
source ยท pub fn path_to_local(expr: &Expr<'_>) -> Option<HirId>
Expand description
If the expression is a path to a local, returns the canonical HirId
of the local.
pub fn path_to_local(expr: &Expr<'_>) -> Option<HirId>
If the expression is a path to a local, returns the canonical HirId
of the local.