Skip to content

Commit 85ac834

Browse files
committed
RingBuf was renamed to VecDeque (fixes #363)
1 parent 7a129a1 commit 85ac834

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ name
3232
[len_zero](https://github.com/Manishearth/rust-clippy/wiki#len_zero) | warn | checking `.len() == 0` or `.len() > 0` (or similar) when `.is_empty()` could be used instead
3333
[let_and_return](https://github.com/Manishearth/rust-clippy/wiki#let_and_return) | warn | creating a let-binding and then immediately returning it like `let x = expr; x` at the end of a block
3434
[let_unit_value](https://github.com/Manishearth/rust-clippy/wiki#let_unit_value) | warn | creating a let binding to a value of unit type, which usually can't be used afterwards
35-
[linkedlist](https://github.com/Manishearth/rust-clippy/wiki#linkedlist) | warn | usage of LinkedList, usually a vector is faster, or a more specialized data structure like a RingBuf
35+
[linkedlist](https://github.com/Manishearth/rust-clippy/wiki#linkedlist) | warn | usage of LinkedList, usually a vector is faster, or a more specialized data structure like a VecDeque
3636
[match_ref_pats](https://github.com/Manishearth/rust-clippy/wiki#match_ref_pats) | warn | a match has all arms prefixed with `&`; the match expression can be dereferenced instead
3737
[min_max](https://github.com/Manishearth/rust-clippy/wiki#min_max) | warn | `min(_, max(_, _))` (or vice versa) with bounds clamping the result to a constant
3838
[modulo_one](https://github.com/Manishearth/rust-clippy/wiki#modulo_one) | warn | taking a number modulo 1, which always returns 0

src/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ declare_lint!(pub BOX_VEC, Warn,
2020
"usage of `Box<Vec<T>>`, vector elements are already on the heap");
2121
declare_lint!(pub LINKEDLIST, Warn,
2222
"usage of LinkedList, usually a vector is faster, or a more specialized data \
23-
structure like a RingBuf");
23+
structure like a VecDeque");
2424

2525
impl LintPass for TypePass {
2626
fn get_lints(&self) -> LintArray {
@@ -43,7 +43,7 @@ impl LateLintPass for TypePass {
4343
span_help_and_lint(
4444
cx, LINKEDLIST, ast_ty.span,
4545
"I see you're using a LinkedList! Perhaps you meant some other data structure?",
46-
"a RingBuf might work");
46+
"a VecDeque might work");
4747
}
4848
}
4949
}

0 commit comments

Comments
 (0)