Skip to content

Commit

Permalink
Update help text in inefficient_to_string
Browse files Browse the repository at this point in the history
Co-Authored-By: Manish Goregaokar <manishsmail@gmail.com>
  • Loading branch information
HMPerson1 and Manishearth committed Oct 17, 2019
1 parent ffb53e7 commit 82dbeb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/methods/inefficient_to_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub fn lint<'tcx>(cx: &LateContext<'_, 'tcx>, expr: &hir::Expr, arg: &hir::Expr,
&format!("calling `to_string` on `{}`", arg_ty),
|db| {
db.help(&format!(
"`{}` implements `ToString` through the blanket impl, but `{}` specializes `ToString` directly",
"`{}` implements `ToString` through a slower blanket impl, but `{}` has a fast specialization of `ToString`",
self_ty, deref_self_ty
));
let mut applicability = Applicability::MachineApplicable;
Expand Down

0 comments on commit 82dbeb3

Please sign in to comment.