clippy_utils::visitors

Function 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.