diff options
author | Yoshua Wuyts <[email protected]> | 2021-02-05 15:57:26 +0000 |
---|---|---|
committer | Yoshua Wuyts <[email protected]> | 2021-02-05 15:57:26 +0000 |
commit | 79d103d5b42c5b207c28b6eb8a6ab42f0c685ec5 (patch) | |
tree | e996c0d19a90a51704d201e935f519b22644256e /crates/hir_ty/src/diagnostics.rs | |
parent | ae7bee70a10d01f0fdebfc12c70aca4f765826b3 (diff) |
Remove redundant clones
Diffstat (limited to 'crates/hir_ty/src/diagnostics.rs')
-rw-r--r-- | crates/hir_ty/src/diagnostics.rs | 2 |
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 | ||