]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #9791 - smoelius:issues-9739-9782, r=Jarcho
authorbors <bors@rust-lang.org>
Tue, 8 Nov 2022 14:15:40 +0000 (14:15 +0000)
committerbors <bors@rust-lang.org>
Tue, 8 Nov 2022 14:15:40 +0000 (14:15 +0000)
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


Trivial merge