diff options
Diffstat (limited to 'src/tools/clippy/src/docs/almost_swapped.txt')
-rw-r--r-- | src/tools/clippy/src/docs/almost_swapped.txt | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/tools/clippy/src/docs/almost_swapped.txt b/src/tools/clippy/src/docs/almost_swapped.txt deleted file mode 100644 index cd10a8d54..000000000 --- a/src/tools/clippy/src/docs/almost_swapped.txt +++ /dev/null @@ -1,15 +0,0 @@ -### What it does -Checks for `foo = bar; bar = foo` sequences. - -### Why is this bad? -This looks like a failed attempt to swap. - -### Example -``` -a = b; -b = a; -``` -If swapping is intended, use `swap()` instead: -``` -std::mem::swap(&mut a, &mut b); -```
\ No newline at end of file |