]> git.lizzy.rs Git - rust.git/commit
Fix incorrect swap suggestion
authorCristian Kubis <cristian.kubis@tsunix.de>
Sat, 31 Aug 2019 16:50:22 +0000 (18:50 +0200)
committerCristian Kubis <cristian.kubis@tsunix.de>
Sat, 31 Aug 2019 16:53:14 +0000 (18:53 +0200)
commit8bc1ded805ba25db8c926786946b71ea7a0c6ef8
tree0beac1797edbc0debf3e688d9294418f6e4932a3
parenta3fcaee5620d458af22682097c4ffb64b57c3327
Fix incorrect swap suggestion

Clippy suggests using swap on fields belonging to the same owner
causing two mutable borrows of the owner

Fixes #981

Signed-off-by: Cristian Kubis <cristian.kubis@tsunix.de>
clippy_lints/src/swap.rs