examples: make examples identical

This commit is contained in:
Dmitry Sharshakov 2021-08-14 16:36:06 +03:00 committed by Blaž Hrastnik
parent f92fb966c0
commit 36fb8d1b1a

View File

@ -79,8 +79,12 @@ pub async fn main() -> Result<()> {
from_value(stopped_event.recv().await.unwrap().body.unwrap()).unwrap();
println!("stopped: {:?}", stop);
println!("threads: {:#?}", client.threads().await);
let bt = client.stack_trace(1).await.expect("expected stack trace");
let threads = client.threads().await?;
println!("threads: {:#?}", threads);
let bt = client
.stack_trace(threads[0].id)
.await
.expect("expected stack trace");
println!("stack trace: {:#?}", bt);
let scopes = client
.scopes(bt.0[0].id)