mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
moar clippylike
This commit is contained in:
parent
9341427b0a
commit
767bd168c1
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ impl LintPass for TypePass {
|
|||
.map(|t| match_ty_unwrap(&**t, &["std", "vec", "Vec"]))
|
||||
.map(|_| {
|
||||
span_note_and_lint(cx, CLIPPY_BOX_VEC, ty.span,
|
||||
"Detected Box<Vec<T>>. Did you mean to use Vec<T>?",
|
||||
"You seem to be trying to use Box<Vec<T>>. Did you mean to use Vec<T>?",
|
||||
"Vec<T> is already on the heap, Box<Vec<T>> makes an extra allocation");
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue