Skip to content

Commit 8dbf423

Browse files
committed
run fmt, clippy
1 parent c9bc75b commit 8dbf423

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

foreign/cpp/src/client.rs

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff 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,

foreign/cpp/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)