From 19c91dfb80218bd8e47ec7fac773e2d3c08abf4d Mon Sep 17 00:00:00 2001 From: RoloEdits Date: Sat, 28 Dec 2024 05:44:16 -0800 Subject: [PATCH] fix: string literals with format args not in `format!` (#12354) --- helix-term/src/commands/dap.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/helix-term/src/commands/dap.rs b/helix-term/src/commands/dap.rs index 0b754bc2..83dd936c 100644 --- a/helix-term/src/commands/dap.rs +++ b/helix-term/src/commands/dap.rs @@ -518,15 +518,16 @@ pub fn dap_variables(cx: &mut Context) { Some(thread_frame) => thread_frame, None => { cx.editor - .set_error("Failed to get stack frame for thread: {thread_id}"); + .set_error(format!("Failed to get stack frame for thread: {thread_id}")); return; } }; let stack_frame = match thread_frame.get(frame) { Some(stack_frame) => stack_frame, None => { - cx.editor - .set_error("Failed to get stack frame for thread {thread_id} and frame {frame}."); + cx.editor.set_error(format!( + "Failed to get stack frame for thread {thread_id} and frame {frame}." + )); return; } };