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