Update clippy_lints/src/unnecessary_wrap.rs

Co-authored-by: Philipp Krones <hello@philkrones.com>
This commit is contained in:
Hirochika Matsumoto 2020-10-12 19:21:04 +09:00
parent df0d565e59
commit eec7f5c111

View File

@ -100,7 +100,7 @@ impl<'tcx> LateLintPass<'tcx> for UnnecessaryWrap {
cx,
UNNECESSARY_WRAP,
span,
"this function returns unnecessarily wrapping data",
format!("this function's return value is unnecessarily wrapped by `{}`, return_type)",
|diag| {
let inner_ty = return_ty(cx, hir_id)
.walk()