aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/diagnostics.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-02-05 16:04:50 +0000
committerGitHub <[email protected]>2021-02-05 16:04:50 +0000
commit737e7a7b751f300de3a55a79ce530ea6e15fb64d (patch)
treeacd545965ff29bd45c44c338b13e36da58714714 /crates/hir_ty/src/diagnostics.rs
parent2a75594ee894baad5339ff9708ca70f6f69e0a36 (diff)
parent79d103d5b42c5b207c28b6eb8a6ab42f0c685ec5 (diff)
Merge #7574
7574: Remove various redundant clones r=kjeremy a=yoshuawuyts I noticed when running clippy through RA that there are a few instances where `clone` is called where it's not actually needed. I figured a small patch to remove these might be welcome here. Thanks! Co-authored-by: Yoshua Wuyts <[email protected]>
Diffstat (limited to 'crates/hir_ty/src/diagnostics.rs')
-rw-r--r--crates/hir_ty/src/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_ty/src/diagnostics.rs b/crates/hir_ty/src/diagnostics.rs
index 08483760c..19da51acd 100644
--- a/crates/hir_ty/src/diagnostics.rs
+++ b/crates/hir_ty/src/diagnostics.rs
@@ -511,7 +511,7 @@ mod tests {
511 // FIXME: macros... 511 // FIXME: macros...
512 let file_id = src.file_id.original_file(&db); 512 let file_id = src.file_id.original_file(&db);
513 let range = src.value.to_node(&root).text_range(); 513 let range = src.value.to_node(&root).text_range();
514 let message = d.message().to_owned(); 514 let message = d.message();
515 actual.entry(file_id).or_default().push((range, message)); 515 actual.entry(file_id).or_default().push((range, message));
516 }); 516 });
517 517