aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty
diff options
context:
space:
mode:
authorYoshua Wuyts <[email protected]>2021-02-05 15:57:26 +0000
committerYoshua Wuyts <[email protected]>2021-02-05 15:57:26 +0000
commit79d103d5b42c5b207c28b6eb8a6ab42f0c685ec5 (patch)
treee996c0d19a90a51704d201e935f519b22644256e /crates/hir_ty
parentae7bee70a10d01f0fdebfc12c70aca4f765826b3 (diff)
Remove redundant clones
Diffstat (limited to 'crates/hir_ty')
-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 323c5f963..1b628d247 100644
--- a/crates/hir_ty/src/diagnostics.rs
+++ b/crates/hir_ty/src/diagnostics.rs
@@ -480,7 +480,7 @@ mod tests {
480 // FIXME: macros... 480 // FIXME: macros...
481 let file_id = src.file_id.original_file(&db); 481 let file_id = src.file_id.original_file(&db);
482 let range = src.value.to_node(&root).text_range(); 482 let range = src.value.to_node(&root).text_range();
483 let message = d.message().to_owned(); 483 let message = d.message();
484 actual.entry(file_id).or_default().push((range, message)); 484 actual.entry(file_id).or_default().push((range, message));
485 }); 485 });
486 486