aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/handlers/dap.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/helix-view/src/handlers/dap.rs b/helix-view/src/handlers/dap.rs
index ae1ae64c..4d197680 100644
--- a/helix-view/src/handlers/dap.rs
+++ b/helix-view/src/handlers/dap.rs
@@ -4,6 +4,7 @@ use helix_core::Selection;
use helix_dap::{self as dap, Client, Payload, Request, ThreadId};
use helix_lsp::block_on;
use log::warn;
+use std::fmt::Write;
use std::io::ErrorKind;
use std::path::PathBuf;
@@ -180,10 +181,10 @@ impl Editor {
let mut status = format!("{} stopped because of {}", scope, reason);
if let Some(desc) = description {
- status.push_str(&format!(" {}", desc));
+ write!(status, " {}", desc).unwrap();
}
if let Some(text) = text {
- status.push_str(&format!(" {}", text));
+ write!(status, " {}", text).unwrap();
}
if all_threads_stopped {
status.push_str(" (all threads stopped)");