Skip to content

Commit 0f1e176

Browse files
.
1 parent 575af73 commit 0f1e176

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyrefly/lib/test/lsp/lsp_interaction/code_action_benchmark.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ fn test_code_action_latency() {
114114

115115
let file_path = repo_root.join(&file_rel);
116116
let uri = Url::from_file_path(&file_path).unwrap();
117-
interaction.client.did_open(&file_rel);
117+
let file_rel_static: &'static str = Box::leak(file_rel.clone().into_boxed_str());
118+
interaction.client.did_open(file_rel_static);
118119

119120
// Warm up by waiting for diagnostics on the target file.
120121
interaction

0 commit comments

Comments
 (0)