Skip to content

Commit

Permalink
fix: correct signature of new 'running()' method
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Dec 27, 2021
1 parent 34ae001 commit ca5f544
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tree/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ impl Item {
}

/// Call to indicate that progress is back in running state, which should be called after the reason for
/// calling `blocked()` or `halted()` as passed.
pub fn running(&mut self, reason: &'static str, eta: Option<SystemTime>) {
self.alter_progress(|p| p.state = State::Halted(reason, eta));
/// calling `blocked()` or `halted()` has passed.
pub fn running(&mut self) {
self.alter_progress(|p| p.state = State::Running);
}

/// Adds a new child `Tree`, whose parent is this instance, with the given `name`.
Expand Down

0 comments on commit ca5f544

Please sign in to comment.