File tree Expand file tree Collapse file tree 7 files changed +9
-5
lines changed Expand file tree Collapse file tree 7 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 2
2
name = " rskafka"
3
3
version = " 0.5.0"
4
4
edition = " 2021"
5
+ rust-version = " 1.72"
5
6
license = " MIT OR Apache-2.0"
6
7
readme = " README.md"
7
8
keywords = [
Original file line number Diff line number Diff line change 1
1
[toolchain ]
2
- channel = " 1.65 "
2
+ channel = " 1.72 "
3
3
components = [ " rustfmt" , " clippy" ]
Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ impl Stream for StreamConsumer {
307
307
* this. last_high_watermark = watermark;
308
308
if let Some ( x) = records_and_offsets. last ( ) {
309
309
* this. next_offset = Some ( x. offset + 1 ) ;
310
- this. buffer . extend ( records_and_offsets. into_iter ( ) )
310
+ this. buffer . extend ( records_and_offsets)
311
311
}
312
312
continue ;
313
313
}
Original file line number Diff line number Diff line change @@ -665,7 +665,7 @@ fn build_produce_request(
665
665
ProtocolRecord {
666
666
key : record. key ,
667
667
value : record. value ,
668
- timestamp_delta : ( record. timestamp - first_timestamp) . num_milliseconds ( ) as i64 ,
668
+ timestamp_delta : ( record. timestamp - first_timestamp) . num_milliseconds ( ) ,
669
669
offset_delta : offset_delta as i32 ,
670
670
headers : record
671
671
. headers
Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ pub use sasl::SaslConfig;
17
17
pub type TlsConfig = Option < Arc < rustls:: ClientConfig > > ;
18
18
19
19
#[ cfg( not( feature = "transport-tls" ) ) ]
20
- pub type TlsConfig = ( ) ;
20
+ #[ allow( missing_copy_implementations) ]
21
+ #[ derive( Debug , Clone , Default ) ]
22
+ pub struct TlsConfig ( ) ;
21
23
22
24
#[ derive( Debug , Error ) ]
23
25
#[ non_exhaustive]
Original file line number Diff line number Diff line change 19
19
//!
20
20
//! [KIP-32]: https://cwiki.apache.org/confluence/display/KAFKA/KIP-32+-+Add+timestamps+to+Kafka+message
21
21
//! [KIP-98]: https://cwiki.apache.org/confluence/display/KAFKA/KIP-98+-+Exactly+Once+Delivery+and+Transactional+Messaging
22
+ #![ allow( clippy:: arc_with_non_send_sync) ] // workaround for https://github.com/proptest-rs/proptest/issues/364
22
23
use std:: io:: { Cursor , Read , Write } ;
23
24
24
25
#[ cfg( test) ]
Original file line number Diff line number Diff line change @@ -511,7 +511,7 @@ async fn test_produce_consume_size_cutoff() {
511
511
512
512
async move {
513
513
let ( records, _high_watermark) = partition_client
514
- . fetch_records ( 0 , 1 ..( limit as i32 ) , 1_000 )
514
+ . fetch_records ( 0 , 1 ..limit, 1_000 )
515
515
. await
516
516
. unwrap ( ) ;
517
517
if records. len ( ) == 1 {
You can’t perform that action at this time.
0 commit comments