Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit eec7f5c

Browse files
hkmatsumotoflip1995
andcommitted
Update clippy_lints/src/unnecessary_wrap.rs
Co-authored-by: Philipp Krones <hello@philkrones.com>
1 parent df0d565 commit eec7f5c

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)