on master help sign in
Format
0e77938Dmitry Sharshakov
helix-dap/src/client.rs+1−3
@@ -225,9 +225,7 @@ impl Client {
225 }
225 }
226
226
227 pub fn capabilities(&self) -> &DebuggerCapabilities {
227 pub fn capabilities(&self) -> &DebuggerCapabilities {
228− self.caps
229− .as_ref()
230− .expect("debugger not yet initialized!")
228+ self.caps.as_ref().expect("debugger not yet initialized!")
231 }
229 }
232
230
233 pub async fn initialize(&mut self, adapter_id: String) -> Result<()> {
231 pub async fn initialize(&mut self, adapter_id: String) -> Result<()> {
helix-dap/src/types.rs+1−1
@@ -7,7 +7,7 @@ use std::{collections::HashMap, path::PathBuf};
7pub struct DebugTemplate {
7pub struct DebugTemplate {
8 pub name: String,
8 pub name: String,
9 pub request: String,
9 pub request: String,
10− pub args: HashMap<String, Value>
10+ pub args: HashMap<String, Value>,
11}
11}
12
12
13#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
13#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]