Skip to content

Commit 9595c90

Browse files
committed
Update rdkafka version and fix lint warning
Signed-off-by: Falk Woldmann Lu <52786457+FalkWoldmann@users.noreply.github.com>
1 parent 04a5ec2 commit 9595c90

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ uuid = { version = "1", features = ["v4"] }
4848
actix-web = { version = "4", optional = true }
4949
actix-http = { version = "3", optional = true }
5050
reqwest-lib = { version = "^0.12", default-features = false, features = ["rustls-tls"], optional = true, package = "reqwest" }
51-
rdkafka-lib = { version = "^0.38", features = ["cmake-build"], optional = true, package = "rdkafka" }
51+
rdkafka-lib = { version = "0.39", features = ["cmake-build"], optional = true, package = "rdkafka" }
5252
warp-lib = { version = "^0.3", optional = true, package = "warp" }
5353
async-trait = { version = "^0.1", optional = true }
5454
bytes = { version = "^1.0", optional = true }

src/binding/rdkafka/kafka_consumer_record.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ impl BinaryDeserializer for ConsumerRecordDeserializer {
9494
}
9595
}
9696

97-
if self.payload.is_some() {
98-
visitor.end_with_data(self.payload.unwrap())
97+
if let Some(payload) = self.payload {
98+
visitor.end_with_data(payload)
9999
} else {
100100
visitor.end()
101101
}

0 commit comments

Comments
 (0)