diff options
| author | AliƩnore Bouttefeux <alienore.bouttefeux@gmail.com> | 2021-04-16 19:38:01 +0200 |
|---|---|---|
| committer | AliƩnore Bouttefeux <alienore.bouttefeux@gmail.com> | 2021-04-16 19:38:01 +0200 |
| commit | 2d050f4b2f6057ea0ac63a3d8d37c05992e4ee3e (patch) | |
| tree | 8630188f6b532c8c9682f11083d830ce3eebc82b /clippy_lints/src | |
| parent | 1e0a3ff55c494dcb660e4cdae2dc4b697815dc86 (diff) | |
| download | rust-2d050f4b2f6057ea0ac63a3d8d37c05992e4ee3e.tar.gz rust-2d050f4b2f6057ea0ac63a3d8d37c05992e4ee3e.zip | |
add type in help of from over Into
Diffstat (limited to 'clippy_lints/src')
| -rw-r--r-- | clippy_lints/src/from_over_into.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/from_over_into.rs b/clippy_lints/src/from_over_into.rs index e5ec245e502..5e2baba8943 100644 --- a/clippy_lints/src/from_over_into.rs +++ b/clippy_lints/src/from_over_into.rs @@ -73,7 +73,7 @@ impl LateLintPass<'_> for FromOverInto { cx.tcx.sess.source_map().guess_head_span(item.span), "an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true", None, - "consider to implement `From` instead", + &format!("consider to implement `From<{}>` instead", impl_trait_ref.self_ty()), ); } } |
