Skip to content

Commit 54094b6

Browse files
committed
refactor
1 parent 24d0b2a commit 54094b6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/traits.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,8 @@ pub trait DynProgress: Send + Sync + impls::Sealed {
223223
/// An opaque type for storing [`DynProgress`].
224224
pub struct BoxedDynProgress(Box<dyn DynProgress>);
225225

226-
/// A bridge type that implements [`Progress`] for any type that implements
227-
/// [`DynProgress`].
228-
pub struct DynProgressToProgressBridge<T: ?Sized>(T);
226+
/// A bridge type that implements [`Progress`] for any type that implements [`DynProgress`].
227+
pub struct DynProgressToProgressBridge<T: ?Sized>(pub T);
229228

230229
/// A trait for describing non-hierarchical progress.
231230
///
@@ -677,7 +676,7 @@ mod impls {
677676
}
678677

679678
impl BoxedDynProgress {
680-
/// Create new boxed dyn Progress
679+
/// Create new instance from a `DynProgress` implementation.
681680
pub fn new(progress: impl DynProgress + 'static) -> Self {
682681
Self(Box::new(progress))
683682
}

0 commit comments

Comments
 (0)