clippy_utils

Function can_mut_borrow_both

source
pub fn can_mut_borrow_both(
    cx: &LateContext<'_>,
    e1: &Expr<'_>,
    e2: &Expr<'_>,
) -> bool
Expand description

Checks if two expressions can be mutably borrowed simultaneously and they aren’t dependent on borrowing same thing twice