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