diff options
author | Omnikar | 2022-08-04 05:32:59 +0000 |
---|---|---|
committer | GitHub | 2022-08-04 05:32:59 +0000 |
commit | afd292e3b9616ea9098ca3a7d24a730508b84809 (patch) | |
tree | bd02d7728b4d8a0ed000fc0b06479921c692b70d /helix-view/src | |
parent | 5d33dbacac3564c50b9f3a74cfef6a956c35dd80 (diff) |
Resolve clippy lints (#3307)
Diffstat (limited to 'helix-view/src')
-rw-r--r-- | helix-view/src/handlers/dap.rs | 5 |
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)"); |