@@ -272,7 +272,7 @@ mod test {
272
272
type Validator = TestValidator ;
273
273
274
274
fn topic ( & self ) -> Topic {
275
- "test_topic"
275
+ "test_topic" . into ( )
276
276
}
277
277
278
278
fn encode ( self , _: & Self :: Validator ) -> Result < ValidatedMessage , Self :: Error > {
@@ -382,7 +382,7 @@ mod test {
382
382
assert_eq ! ( 1 , sink. sink. poll_close_called) ;
383
383
assert_eq ! (
384
384
vec![ (
385
- "test_topic" ,
385
+ "test_topic" . into ( ) ,
386
386
TestMessage ( "foo" ) . encode( & TestValidator ) . unwrap( )
387
387
) ] ,
388
388
sink. sink. elements
@@ -517,14 +517,14 @@ mod test {
517
517
assert_eq ! (
518
518
Ok ( ( ) ) ,
519
519
sink. as_mut( )
520
- . start_send( ( "test_topic" , test_validated_message( "foo" ) ) )
520
+ . start_send( ( "test_topic" . into ( ) , test_validated_message( "foo" ) ) )
521
521
) ;
522
522
}
523
523
524
524
/// The publisher should start flushing when the batch size has been exceeded
525
525
#[ test]
526
526
fn batching_batches ( ) {
527
- let topic = "test_topic" ;
527
+ let topic = "test_topic" . into ( ) ;
528
528
let batch_size = 3 ;
529
529
let publisher = MockPublisher :: new ( ) ;
530
530
let sink = publisher_sink ( publisher, batch_size) ;
@@ -565,7 +565,7 @@ mod test {
565
565
/// The publisher should flush buffered elements when asked to close
566
566
#[ test]
567
567
fn close_flushes_batch ( ) {
568
- let topic = "test_topic" ;
568
+ let topic = "test_topic" . into ( ) ;
569
569
let batch_size = 3 ;
570
570
let publisher = MockPublisher :: new ( ) ;
571
571
let sink = publisher_sink ( publisher, batch_size) ;
@@ -599,7 +599,7 @@ mod test {
599
599
/// The publisher should flush buffered elements when asked to flush
600
600
#[ test]
601
601
fn flush_incomplete_batch ( ) {
602
- let topic = "test_topic" ;
602
+ let topic = "test_topic" . into ( ) ;
603
603
let batch_size = 3 ;
604
604
let publisher = MockPublisher :: new ( ) ;
605
605
let sink = publisher_sink ( publisher, batch_size) ;
@@ -635,7 +635,7 @@ mod test {
635
635
#[ test]
636
636
#[ should_panic]
637
637
fn panic_at_buffer_full_without_ready_check ( ) {
638
- let topic = "test_topic" ;
638
+ let topic = "test_topic" . into ( ) ;
639
639
let batch_size = 1 ;
640
640
let publisher = MockPublisher :: new ( ) ;
641
641
let sink = publisher_sink ( publisher, batch_size) ;
@@ -656,7 +656,7 @@ mod test {
656
656
/// Step through flushing a non-full batch and see that yield points are respected
657
657
#[ test]
658
658
fn partial_flushing_check ( ) {
659
- let topic = "test_topic" ;
659
+ let topic = "test_topic" . into ( ) ;
660
660
let batch_size = 3 ;
661
661
let ( publisher, command) = ControlledPublisher :: new ( ) ;
662
662
let sink = publisher_sink ( publisher, batch_size) ;
@@ -724,7 +724,7 @@ mod test {
724
724
/// A failed message can be re-sent to the sink and eventually succeed
725
725
#[ test]
726
726
fn flushing_error_retry ( ) {
727
- let topic = "test_topic" ;
727
+ let topic = "test_topic" . into ( ) ;
728
728
let batch_size = 5 ;
729
729
let ( publisher, command) = ControlledPublisher :: new ( ) ;
730
730
let sink = publisher_sink ( publisher, batch_size) ;
0 commit comments