diff options
Diffstat (limited to 'crates/hir_ty/src')
-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 | ||