File tree Expand file tree Collapse file tree 2 files changed +16
-13
lines changed
Expand file tree Collapse file tree 2 files changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -99,14 +99,15 @@ impl Client {
9999 expiry_value : u32 ,
100100 max_topic_size : String ,
101101 ) -> Result < ( ) , String > {
102- let compression_algorithm =
103- RustCompressionAlgorithm :: from_str ( compression_algorithm. as_str ( ) )
104- . map_err ( |error| {
105- format ! (
106- "Could not parse compression algorithm '{}': {error}" ,
107- compression_algorithm
108- )
109- } ) ?;
102+ let compression_algorithm = RustCompressionAlgorithm :: from_str (
103+ compression_algorithm. as_str ( ) ,
104+ )
105+ . map_err ( |error| {
106+ format ! (
107+ "Could not parse compression algorithm '{}': {error}" ,
108+ compression_algorithm
109+ )
110+ } ) ?;
110111 let replication_factor = if replication_factor == 0 {
111112 None
112113 } else {
@@ -125,11 +126,11 @@ impl Client {
125126 } ;
126127 let max_topic_size =
127128 RustMaxTopicSize :: from_str ( max_topic_size. as_str ( ) ) . map_err ( |error| {
128- format ! (
129- "Could not parse max topic size '{}': {error}" ,
130- max_topic_size
131- )
132- } ) ?;
129+ format ! (
130+ "Could not parse max topic size '{}': {error}" ,
131+ max_topic_size
132+ )
133+ } ) ?;
133134
134135 RUNTIME
135136 . block_on ( self . inner . create_topic (
@@ -170,6 +171,7 @@ impl Client {
170171 Ok ( ( ) )
171172 }
172173
174+ #[ allow( clippy:: too_many_arguments) ]
173175 pub ( crate ) fn poll_messages (
174176 & self ,
175177 stream_id : & Identifier ,
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ mod ffi {
8585 topic : & Identifier ,
8686 partitioning : u32 ,
8787 ) -> Result < ( ) > ;
88+ #[ allow( clippy:: too_many_arguments) ]
8889 fn poll_messages (
8990 self : & Client ,
9091 stream_id : & Identifier ,
You can’t perform that action at this time.
0 commit comments