aboutsummaryrefslogtreecommitdiff
path: root/helix-dap/src
diff options
context:
space:
mode:
authorDmitry Sharshakov2021-08-14 10:19:51 +0000
committerBlaž Hrastnik2021-08-20 04:43:54 +0000
commite7f543fe66459bf5c35675b551213443370492dd (patch)
tree264b4de3ac6fad79d885f2fd5233f7448cbe265b /helix-dap/src
parenteb0605c13d65f68078a62105f738915143997d7e (diff)
format
Diffstat (limited to 'helix-dap/src')
-rw-r--r--helix-dap/src/client.rs14
1 files changed, 4 insertions, 10 deletions
diff --git a/helix-dap/src/client.rs b/helix-dap/src/client.rs
index 0b3a9928..d37100d5 100644
--- a/helix-dap/src/client.rs
+++ b/helix-dap/src/client.rs
@@ -595,8 +595,7 @@ impl Client {
let response = self
.request("stackTrace".to_owned(), to_value(args).ok(), true)
- .await?
- .unwrap();
+ .await?.unwrap();
let body: StackTraceResponseBody = from_value(response.body.unwrap()).unwrap();
@@ -604,10 +603,7 @@ impl Client {
}
pub async fn threads(&mut self) -> Result<Vec<Thread>> {
- let response = self
- .request("threads".to_owned(), None, true)
- .await?
- .unwrap();
+ let response = self.request("threads".to_owned(), None, true).await?.unwrap();
let body: ThreadsResponseBody = from_value(response.body.unwrap()).unwrap();
@@ -619,8 +615,7 @@ impl Client {
let response = self
.request("scopes".to_owned(), to_value(args).ok(), true)
- .await?
- .unwrap();
+ .await?.unwrap();
let body: ScopesResponseBody = from_value(response.body.unwrap()).unwrap();
@@ -638,8 +633,7 @@ impl Client {
let response = self
.request("variables".to_owned(), to_value(args).ok(), true)
- .await?
- .unwrap();
+ .await?.unwrap();
let body: VariablesResponseBody = from_value(response.body.unwrap()).unwrap();