aboutsummaryrefslogtreecommitdiff
path: root/helix-dap/src
diff options
context:
space:
mode:
authorDmitry Sharshakov2021-08-24 09:01:58 +0000
committerDmitry Sharshakov2021-08-24 09:01:58 +0000
commit0e779381a86ad6d790f3664e1d1506d01f9ba1f3 (patch)
tree601499918fcc35f3e1daf77d5e67ed4f96b745aa /helix-dap/src
parent774ab6f8b62d825791f023ee5f7c8304a95de75a (diff)
Format
Diffstat (limited to 'helix-dap/src')
-rw-r--r--helix-dap/src/client.rs4
-rw-r--r--helix-dap/src/types.rs2
2 files changed, 2 insertions, 4 deletions
diff --git a/helix-dap/src/client.rs b/helix-dap/src/client.rs
index 43afc4c6..ed4f8ed5 100644
--- a/helix-dap/src/client.rs
+++ b/helix-dap/src/client.rs
@@ -225,9 +225,7 @@ impl Client {
}
pub fn capabilities(&self) -> &DebuggerCapabilities {
- self.caps
- .as_ref()
- .expect("debugger not yet initialized!")
+ self.caps.as_ref().expect("debugger not yet initialized!")
}
pub async fn initialize(&mut self, adapter_id: String) -> Result<()> {
diff --git a/helix-dap/src/types.rs b/helix-dap/src/types.rs
index e8543dcb..dfc25b1b 100644
--- a/helix-dap/src/types.rs
+++ b/helix-dap/src/types.rs
@@ -7,7 +7,7 @@ use std::{collections::HashMap, path::PathBuf};
pub struct DebugTemplate {
pub name: String,
pub request: String,
- pub args: HashMap<String, Value>
+ pub args: HashMap<String, Value>,
}
#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]