on master help sign in
format
809990aDmitry Sharshakov
helix-dap/src/client.rs+10−4
@@ -595,7 +595,8 @@ impl Client {
595
595
596 let response = self
596 let response = self
597 .request("stackTrace".to_owned(), to_value(args).ok(), true)
597 .request("stackTrace".to_owned(), to_value(args).ok(), true)
598+ .await?
598− .await?.unwrap();
599+ .unwrap();
599
600
600 let body: StackTraceResponseBody = from_value(response.body.unwrap()).unwrap();
601 let body: StackTraceResponseBody = from_value(response.body.unwrap()).unwrap();
601
602
@@ -603,7 +604,10 @@ impl Client {
603 }
604 }
604
605
605 pub async fn threads(&mut self) -> Result<Vec<Thread>> {
606 pub async fn threads(&mut self) -> Result<Vec<Thread>> {
607+ let response = self
606− let response = self.request("threads".to_owned(), None, true).await?.unwrap();
608+ .request("threads".to_owned(), None, true)
609+ .await?
610+ .unwrap();
607
611
608 let body: ThreadsResponseBody = from_value(response.body.unwrap()).unwrap();
612 let body: ThreadsResponseBody = from_value(response.body.unwrap()).unwrap();
609
613
@@ -615,7 +619,8 @@ impl Client {
615
619
616 let response = self
620 let response = self
617 .request("scopes".to_owned(), to_value(args).ok(), true)
621 .request("scopes".to_owned(), to_value(args).ok(), true)
622+ .await?
618− .await?.unwrap();
623+ .unwrap();
619
624
620 let body: ScopesResponseBody = from_value(response.body.unwrap()).unwrap();
625 let body: ScopesResponseBody = from_value(response.body.unwrap()).unwrap();
621
626
@@ -633,7 +638,8 @@ impl Client {
633
638
634 let response = self
639 let response = self
635 .request("variables".to_owned(), to_value(args).ok(), true)
640 .request("variables".to_owned(), to_value(args).ok(), true)
641+ .await?
636− .await?.unwrap();
642+ .unwrap();
637
643
638 let body: VariablesResponseBody = from_value(response.body.unwrap()).unwrap();
644 let body: VariablesResponseBody = from_value(response.body.unwrap()).unwrap();
639
645