Skip to content

Commit 75e9227

Browse files
Update clippy_lints/src/unnecessary_wrap.rs
Co-authored-by: Philipp Krones <hello@philkrones.com>
1 parent c4e24c8 commit 75e9227

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/unnecessary_wrap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl<'tcx> LateLintPass<'tcx> for UnnecessaryWrap {
100100
cx,
101101
UNNECESSARY_WRAP,
102102
span,
103-
"this function returns unnecessarily wrapping data",
103+
format!("this function's return value is unnecessarily wrapped by `{}`, return_type)",
104104
|diag| {
105105
let inner_ty = return_ty(cx, hir_id)
106106
.walk()

0 commit comments

Comments
 (0)