]> git.lizzy.rs Git - rust.git/commit
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)
commitb9ca3195abeb5d8112b6739fc77e25d101937a56
tree35cc6bf1176098fa2ef9e7b6ec561de4ef88e41d
parent4e31877ef969d2f5ad30a92bd8fbb39036681a8f
parent50f63a0f240b4c37d992eaf55babaef1f162cacf
Auto merge of #9791 - smoelius:issues-9739-9782, r=Jarcho

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