Skip to content

Commit

Permalink
feat!: remove Progress: 'static requirement.
Browse files Browse the repository at this point in the history
This requirement can be added where used and where needed, and
originally snuck in because it was easier and `Progress` implementations
typically are `'static` as well.

However, that requirement made it impossible to implement `Progoress`
for `&mut T where T: Progress`.
  • Loading branch information
Byron committed Oct 17, 2022
1 parent f49f470 commit 300181b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::{messages::MessageLevel, progress, Unit};
use std::time::Instant;

/// A trait for describing hierarchical process.
pub trait Progress: Send + 'static {
pub trait Progress: Send {
/// The type of progress returned by [`add_child()`][Progress::add_child()].
type SubProgress: Progress;

Expand Down

0 comments on commit 300181b

Please sign in to comment.