Update clippy_lints/src/unnecessary_wrap.rs
Co-authored-by: Philipp Krones <hello@philkrones.com>
This commit is contained in:
parent
df0d565e59
commit
eec7f5c111
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user