Skip to content

Commit 1ac4d93

Browse files
committed
remove a couple of redundant clones
1 parent c9fcfea commit 1ac4d93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_utils/src/diagnostics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ pub fn span_lint_and_help<T: LintContext>(
8484
cx.span_lint(lint, span, msg.to_string(), |diag| {
8585
let help = help.to_string();
8686
if let Some(help_span) = help_span {
87-
diag.span_help(help_span, help.to_string());
87+
diag.span_help(help_span, help);
8888
} else {
89-
diag.help(help.to_string());
89+
diag.help(help);
9090
}
9191
docs_link(diag, lint);
9292
});

0 commit comments

Comments
 (0)