File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ use crate::utils::{
37
37
38
38
declare_clippy_lint ! {
39
39
/// **What it does:** Checks for use of `Box<Vec<_>>` anywhere in the code.
40
+ /// Check the [Box documentation](https://doc.rust-lang.org/std/boxed/index.html) for more information.
40
41
///
41
42
/// **Why is this bad?** `Vec` already keeps its contents in a separate area on
42
43
/// the heap. So if you `Box` it, you just add another level of indirection
@@ -65,6 +66,7 @@ declare_clippy_lint! {
65
66
66
67
declare_clippy_lint ! {
67
68
/// **What it does:** Checks for use of `Vec<Box<T>>` where T: Sized anywhere in the code.
69
+ /// Check the [Box documentation](https://doc.rust-lang.org/std/boxed/index.html) for more information.
68
70
///
69
71
/// **Why is this bad?** `Vec` already keeps its contents in a separate area on
70
72
/// the heap. So if you `Box` its contents, you just add another level of indirection.
@@ -167,6 +169,7 @@ declare_clippy_lint! {
167
169
168
170
declare_clippy_lint ! {
169
171
/// **What it does:** Checks for use of `&Box<T>` anywhere in the code.
172
+ /// Check the [Box documentation](https://doc.rust-lang.org/std/boxed/index.html) for more information.
170
173
///
171
174
/// **Why is this bad?** Any `&Box<T>` can also be a `&T`, which is more
172
175
/// general.
You can’t perform that action at this time.
0 commit comments