]> git.lizzy.rs Git - rust.git/commit
Improve `manual_map` and `map_entry`
authorJason Newcomb <jsnewcomb@pm.me>
Sun, 1 Aug 2021 22:39:56 +0000 (18:39 -0400)
committerJason Newcomb <jsnewcomb@pm.me>
Sat, 14 Aug 2021 23:49:45 +0000 (19:49 -0400)
commit4838c78ba4ef784379ae6ec5617479de2a32d3f6
treeb5940a333778bd497fb48289c443f15b1132fb99
parent7c5487dc62d569d4bc32cbe51951668406242137
Improve `manual_map` and `map_entry`
Locals which can be partially moved created within the to-be-created closure shouldn't block the use of a closure
clippy_lints/src/entry.rs
clippy_utils/src/lib.rs
tests/ui/entry.fixed
tests/ui/entry.rs
tests/ui/entry.stderr
tests/ui/entry_btree.fixed [new file with mode: 0644]
tests/ui/entry_btree.rs [new file with mode: 0644]
tests/ui/entry_btree.stderr [new file with mode: 0644]
tests/ui/manual_map_option_2.fixed [new file with mode: 0644]
tests/ui/manual_map_option_2.rs [new file with mode: 0644]
tests/ui/manual_map_option_2.stderr [new file with mode: 0644]