Skip to content

Commit 9f100ff

Browse files
committed
Disable clippy's now-default swap-with-temporary buggy lint
This lint fires when we do a swap with a value stored in a mutex, as it sees the `&mut x.lock().unwrap()` as a temporary which can be taken from, even though it is in fact not.
1 parent e2a05a4 commit 9f100ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ci/check-lint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ CLIPPY() {
1010
`# Things where clippy is just wrong` \
1111
-A clippy::unwrap-or-default \
1212
-A clippy::upper_case_acronyms \
13+
-A clippy::swap-with-temporary \
1314
`# Things where we do odd stuff on purpose ` \
1415
-A clippy::unusual_byte_groupings \
1516
-A clippy::unit_arg \

0 commit comments

Comments
 (0)