aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Sharshakov2021-08-14 10:09:05 +0000
committerBlaž Hrastnik2021-08-20 04:43:54 +0000
commit809990a3a4a7a9ccfd169a765c7f0e8e1f2ccf1b (patch)
treed2fd92fd41325df644403eaa24ab9397779e52c7
parentd4c215b35db2195856b00a5663081cda8565ce60 (diff)
format
-rw-r--r--helix-dap/src/client.rs14
1 files changed, 10 insertions, 4 deletions
diff --git a/helix-dap/src/client.rs b/helix-dap/src/client.rs
index d37100d5..0b3a9928 100644
--- a/helix-dap/src/client.rs
+++ b/helix-dap/src/client.rs
@@ -595,7 +595,8 @@ 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();
@@ -603,7 +604,10 @@ 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();
@@ -615,7 +619,8 @@ 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();
@@ -633,7 +638,8 @@ 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();