Skip to content

Commit

Permalink
Merge pull request #654 from openSUSE/fix-progress-docs
Browse files Browse the repository at this point in the history
Fix ProgressPresenter documentation
  • Loading branch information
imobachgs authored Jul 10, 2023
2 parents 1b8479e + 796b366 commit b4bf25f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions rust/agama-lib/src/progress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
//! # use zbus;
//!
//! // Custom presenter
//! struct SimplePresenter {};
//! struct SimplePresenter {}
//!
//! impl SimplePresenter {
//! fn report_progress(&self, progress: &Progress) {
//! println!("{}/{} {}", &progress.current_step, &progress.max_steps, &progress.title);
//! println!("{}/{} {}", &progress.current_step, &progress.max_steps, &progress.current_title);
//! }
//! }
//!
Expand All @@ -24,7 +24,11 @@
//! self.report_progress(progress);
//! }
//!
//! fn update(&mut self, progress: &Progress) {
//! fn update_main(&mut self, progress: &Progress) {
//! self.report_progress(progress);
//! }
//!
//! fn update_detail(&mut self, progress: &Progress) {
//! self.report_progress(progress);
//! }
//!
Expand Down

0 comments on commit b4bf25f

Please sign in to comment.