Address issues 9739 and 9782 This PR fixes #9739 in the manner I suggested in https://github.com/rust-lang/rust-clippy/issues/9739#issuecomment-1296802376. This PR also fixes the compilation failures in #9782 (but doesn't address `@e00E's` other objections). Fixes #9739 r? `@Jarcho` changelog: Fix two `needless_borrow` false positives, one involving borrows in `if`-`else`s, the other involving qualified function calls