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> {
438
438
439
439
fn topic ( & self ) -> & str {
440
440
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 ) )
442
442
. to_str ( )
443
443
. expect ( "Topic name is not valid UTF-8" )
444
444
}
Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ impl TopicPartitionList {
327
327
328
328
/// Returns all the elements of the list.
329
329
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 ( ) ) } ;
331
331
let mut vec = Vec :: with_capacity ( slice. len ( ) ) ;
332
332
for elem_ptr in slice {
333
333
vec. push ( TopicPartitionListElem :: from_ptr ( self , & mut * elem_ptr) ) ;
@@ -337,7 +337,7 @@ impl TopicPartitionList {
337
337
338
338
/// Returns all the elements of the list that belong to the specified topic.
339
339
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 ( ) ) } ;
341
341
let mut vec = Vec :: with_capacity ( slice. len ( ) ) ;
342
342
for elem_ptr in slice {
343
343
let tp = TopicPartitionListElem :: from_ptr ( self , & mut * elem_ptr) ;
You can’t perform that action at this time.
0 commit comments