We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5962d93 commit 1d48ae0Copy full SHA for 1d48ae0
clippy_lints/src/unused_box.rs
@@ -13,7 +13,9 @@ declare_clippy_lint! {
13
///
14
/// ### Why is this bad?
15
16
- /// It's better to just return `T` in these cases
+ /// It's better to just return `T` in these cases. The caller may not need
17
+ /// the value to be boxed, and it's expensive to free the memory once the
18
+ /// `Box<T>` been dropped.
19
20
/// ### Example
21
/// ```rust
0 commit comments