File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -438,7 +438,7 @@ impl<'a> Message for BorrowedMessage<'a> {
438438
439439 fn topic ( & self ) -> & str {
440440 unsafe {
441- CStr :: from_ptr ( rdsys:: rd_kafka_topic_name ( ( self . ptr ) . rkt ) )
441+ CStr :: from_ptr ( rdsys:: rd_kafka_topic_name ( self . ptr . rkt ) )
442442 . to_str ( )
443443 . expect ( "Topic name is not valid UTF-8" )
444444 }
Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ impl TopicPartitionList {
327327
328328 /// Returns all the elements of the list.
329329 pub fn elements ( & self ) -> Vec < TopicPartitionListElem < ' _ > > {
330- let slice = unsafe { util:: ptr_to_slice_mut ( ( self . ptr ) . elems , self . count ( ) ) } ;
330+ let slice = unsafe { util:: ptr_to_slice_mut ( self . ptr . elems , self . count ( ) ) } ;
331331 let mut vec = Vec :: with_capacity ( slice. len ( ) ) ;
332332 for elem_ptr in slice {
333333 vec. push ( TopicPartitionListElem :: from_ptr ( self , & mut * elem_ptr) ) ;
@@ -337,7 +337,7 @@ impl TopicPartitionList {
337337
338338 /// Returns all the elements of the list that belong to the specified topic.
339339 pub fn elements_for_topic < ' a > ( & ' a self , topic : & str ) -> Vec < TopicPartitionListElem < ' a > > {
340- let slice = unsafe { util:: ptr_to_slice_mut ( ( self . ptr ) . elems , self . count ( ) ) } ;
340+ let slice = unsafe { util:: ptr_to_slice_mut ( self . ptr . elems , self . count ( ) ) } ;
341341 let mut vec = Vec :: with_capacity ( slice. len ( ) ) ;
342342 for elem_ptr in slice {
343343 let tp = TopicPartitionListElem :: from_ptr ( self , & mut * elem_ptr) ;
You can’t perform that action at this time.
0 commit comments