From afd292e3b9616ea9098ca3a7d24a730508b84809 Mon Sep 17 00:00:00 2001 From: Omnikar Date: Thu, 4 Aug 2022 01:32:59 -0400 Subject: Resolve clippy lints (#3307) --- helix-view/src/handlers/dap.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'helix-view/src/handlers') 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)"); -- cgit v1.2.3-70-g09d2