about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurențiu Nicola <lnicola@dend.ro>2024-03-08 20:39:38 +0200
committerLaurențiu Nicola <lnicola@dend.ro>2024-03-08 20:39:47 +0200
commita12ccd59234cbcc2d80464a200b3410e528ef8d2 (patch)
tree727ff144516526ada388e0d9035283b60a94ede4
parent0f43b55e834a125341dd9d5bdecd439eb3c3b906 (diff)
downloadrust-a12ccd59234cbcc2d80464a200b3410e528ef8d2.tar.gz
rust-a12ccd59234cbcc2d80464a200b3410e528ef8d2.zip
Fix test
-rw-r--r--crates/rust-analyzer/src/integrated_benchmarks.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/integrated_benchmarks.rs b/crates/rust-analyzer/src/integrated_benchmarks.rs
index 19181885022..ae58e6b9b24 100644
--- a/crates/rust-analyzer/src/integrated_benchmarks.rs
+++ b/crates/rust-analyzer/src/integrated_benchmarks.rs
@@ -306,7 +306,7 @@ fn integrated_diagnostics_benchmark() {
         let mut text = host.analysis().file_text(file_id).unwrap().to_string();
         patch(&mut text, "db.struct_data(self.id)", "();\ndb.struct_data(self.id)");
         let mut change = ChangeWithProcMacros::new();
-        change.change_file(file_id, Some(Arc::from(text)));
+        change.change_file(file_id, Some(text));
         host.apply_change(change);
     };