Skip to content

Commit

Permalink
Fix progress.rs doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Nov 3, 2023
1 parent 4bbef05 commit d5ac58a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions rust/agama-lib/src/progress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//!
//! ```no_run
//! # use agama_lib::progress::{Progress, ProgressMonitor, ProgressPresenter};
//! # use async_std::task::block_on;
//! # use tokio::{runtime::Handle, task};
//! # use zbus;
//!
//! // Custom presenter
Expand Down Expand Up @@ -37,9 +37,11 @@
//! }
//! }
//!
//! let connection = block_on(zbus::Connection::system()).unwrap();
//! let mut monitor = block_on(ProgressMonitor::new(connection)).unwrap();
//! monitor.run(SimplePresenter {});
//! async fn run_monitor() {
//! let connection = zbus::Connection::system().await.unwrap();
//! let mut monitor = ProgressMonitor::new(connection).await.unwrap();
//! monitor.run(SimplePresenter {});
//!}
//! ```

use crate::error::ServiceError;
Expand Down

0 comments on commit d5ac58a

Please sign in to comment.