diff options
| author | Hirochika Matsumoto <matsujika@gmail.com> | 2020-10-12 19:21:04 +0900 |
|---|---|---|
| committer | Hirochika Matsumoto <matsujika@gmail.com> | 2020-11-18 01:28:37 +0900 |
| commit | eec7f5c1113d3d49dd7f42462ea25d0b36b4b49b (patch) | |
| tree | 7141f9ef8ac27938a319a181a7f8e5515902f03b | |
| parent | df0d565e597ad9c436fadfb8e11a16a92bcb4114 (diff) | |
| download | rust-eec7f5c1113d3d49dd7f42462ea25d0b36b4b49b.tar.gz rust-eec7f5c1113d3d49dd7f42462ea25d0b36b4b49b.zip | |
Update clippy_lints/src/unnecessary_wrap.rs
Co-authored-by: Philipp Krones <hello@philkrones.com>
| -rw-r--r-- | clippy_lints/src/unnecessary_wrap.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/unnecessary_wrap.rs b/clippy_lints/src/unnecessary_wrap.rs index de13301381e..28762b8d265 100644 --- a/clippy_lints/src/unnecessary_wrap.rs +++ b/clippy_lints/src/unnecessary_wrap.rs @@ -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() |
