diff options
Diffstat (limited to '')
-rw-r--r-- | src/tools/clippy/src/docs/useless_vec.txt | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/tools/clippy/src/docs/useless_vec.txt b/src/tools/clippy/src/docs/useless_vec.txt deleted file mode 100644 index ee5afc99e..000000000 --- a/src/tools/clippy/src/docs/useless_vec.txt +++ /dev/null @@ -1,18 +0,0 @@ -### What it does -Checks for usage of `&vec![..]` when using `&[..]` would -be possible. - -### Why is this bad? -This is less efficient. - -### Example -``` -fn foo(_x: &[u8]) {} - -foo(&vec![1, 2]); -``` - -Use instead: -``` -foo(&[1, 2]); -```
\ No newline at end of file |