This commit is contained in:
Dmitry Sharshakov 2021-08-14 13:19:51 +03:00 committed by Blaž Hrastnik
parent eb0605c13d
commit e7f543fe66

View file

@ -595,8 +595,7 @@ pub async fn stack_trace(
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 @@ pub async fn stack_trace(
}
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 @@ pub async fn scopes(&mut self, frame_id: usize) -> Result<Vec<Scope>> {
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 @@ pub async fn variables(&mut self, variables_reference: usize) -> Result<Vec<Vari
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();