Unnamed repository; edit this file 'description' to name the repository.
Fix test
Laurențiu Nicola 2024-03-09
parent 0f43b55 · commit a12ccd5
-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 1918188502..ae58e6b9b2 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);
};