mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 01:17:16 +00:00
Merge pull request #497 from cesarb/ringbuf
Mention VecDeque in linkedlist lint
This commit is contained in:
commit
76049a7cd0
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ pub struct TypePass;
|
|||
/// **Example:** `struct X { values: Box<Vec<Foo>> }`
|
||||
declare_lint!(pub BOX_VEC, Warn,
|
||||
"usage of `Box<Vec<T>>`, vector elements are already on the heap");
|
||||
/// **What it does:** This lint checks for usage of any `LinkedList`, suggesting to use a `Vec` or `RingBuf`.
|
||||
/// **What it does:** This lint checks for usage of any `LinkedList`, suggesting to use a `Vec` or a `VecDeque` (formerly called `RingBuf`).
|
||||
///
|
||||
/// **Why is this bad?** Gankro says:
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue