@@ -245,7 +245,7 @@ mod impls {
245
245
246
246
impl < ' a , T > Count for & ' a T
247
247
where
248
- T : Count ,
248
+ T : Count + ? Sized ,
249
249
{
250
250
fn set ( & self , step : Step ) {
251
251
( * self ) . set ( step)
@@ -270,7 +270,7 @@ mod impls {
270
270
271
271
impl < ' a , T > Count for & ' a mut T
272
272
where
273
- T : Count ,
273
+ T : Count + ? Sized ,
274
274
{
275
275
fn set ( & self , step : Step ) {
276
276
self . deref ( ) . set ( step)
@@ -295,7 +295,7 @@ mod impls {
295
295
296
296
impl < ' a , T > Progress for & ' a mut T
297
297
where
298
- T : Progress ,
298
+ T : Progress + ? Sized ,
299
299
{
300
300
fn init ( & mut self , max : Option < Step > , unit : Option < Unit > ) {
301
301
self . deref_mut ( ) . init ( max, unit)
@@ -352,7 +352,7 @@ mod impls {
352
352
353
353
impl < ' a , T > NestedProgress for & ' a mut T
354
354
where
355
- T : NestedProgress ,
355
+ T : NestedProgress + ? Sized ,
356
356
{
357
357
type SubProgress = T :: SubProgress ;
358
358
@@ -530,7 +530,7 @@ mod impls {
530
530
531
531
impl < T > Progress for DynNestedProgressToNestedProgress < T >
532
532
where
533
- T : ?Sized + DynNestedProgress ,
533
+ T : ?Sized + Progress ,
534
534
{
535
535
fn init ( & mut self , max : Option < Step > , unit : Option < Unit > ) {
536
536
self . 0 . init ( max, unit)
@@ -575,7 +575,7 @@ mod impls {
575
575
576
576
impl < T > Count for DynNestedProgressToNestedProgress < T >
577
577
where
578
- T : ?Sized + DynNestedProgress ,
578
+ T : ?Sized + Count ,
579
579
{
580
580
fn set ( & self , step : Step ) {
581
581
self . 0 . set ( step)
0 commit comments