Function clippy_utils::visitors::is_res_used
source · pub fn is_res_used(cx: &LateContext<'_>, res: Res, body: BodyId) -> bool
Expand description
Checks if the given resolved path is used in the given body.
pub fn is_res_used(cx: &LateContext<'_>, res: Res, body: BodyId) -> bool
Checks if the given resolved path is used in the given body.