@@ -658,8 +658,6 @@ mod tests {
658
658
659
659
assert ! ( subscriber. take( ) ?. is_none( ) ) ;
660
660
assert ! ( subscriber. take_with_info( ) ?. is_none( ) ) ;
661
- assert ! ( subscriber. take_loaned( ) ?. is_none( ) ) ;
662
- assert ! ( subscriber. take_loaned_with_info( ) ?. is_none( ) ) ;
663
661
664
662
publisher. publish ( msg:: Empty :: default ( ) ) ?;
665
663
waitset. wait ( timeout, |_| Ok ( ( ) ) ) ?;
@@ -668,29 +666,10 @@ mod tests {
668
666
669
667
assert ! ( subscriber. take( ) ?. is_none( ) ) ;
670
668
assert ! ( subscriber. take_with_info( ) ?. is_none( ) ) ;
671
- assert ! ( subscriber. take_loaned( ) ?. is_none( ) ) ;
672
- assert ! ( subscriber. take_loaned_with_info( ) ?. is_none( ) ) ;
673
669
674
670
publisher. publish ( msg:: Empty :: default ( ) ) ?;
675
671
waitset. wait ( timeout, |_| Ok ( ( ) ) ) ?;
676
672
677
- assert ! ( subscriber. take_loaned( ) ?. is_some( ) ) ;
678
-
679
- assert ! ( subscriber. take( ) ?. is_none( ) ) ;
680
- assert ! ( subscriber. take_with_info( ) ?. is_none( ) ) ;
681
- assert ! ( subscriber. take_loaned( ) ?. is_none( ) ) ;
682
- assert ! ( subscriber. take_loaned_with_info( ) ?. is_none( ) ) ;
683
-
684
- publisher. publish ( msg:: Empty :: default ( ) ) ?;
685
- waitset. wait ( timeout, |_| Ok ( ( ) ) ) ?;
686
-
687
- assert ! ( subscriber. take_loaned_with_info( ) ?. is_some( ) ) ;
688
-
689
- assert ! ( subscriber. take( ) ?. is_none( ) ) ;
690
- assert ! ( subscriber. take_with_info( ) ?. is_none( ) ) ;
691
- assert ! ( subscriber. take_loaned( ) ?. is_none( ) ) ;
692
- assert ! ( subscriber. take_loaned_with_info( ) ?. is_none( ) ) ;
693
-
694
673
Ok ( ( ) )
695
674
}
696
675
}
0 commit comments