diff --git a/crates/rust-analyzer/src/handlers/notification.rs b/crates/rust-analyzer/src/handlers/notification.rs index 60a3edb9ddd..7e6219991b6 100644 --- a/crates/rust-analyzer/src/handlers/notification.rs +++ b/crates/rust-analyzer/src/handlers/notification.rs @@ -134,7 +134,7 @@ pub(crate) fn handle_did_save_text_document( // reset the flag state.proc_macro_changed = false; // rebuild the proc macros - state.fetch_build_data_queue.request_op(format!("ScriptRebuildOnSave"), ()); + state.fetch_build_data_queue.request_op("ScriptRebuildOnSave".to_owned(), ()); } if let Ok(vfs_path) = from_proto::vfs_path(¶ms.text_document.uri) {