From 445ccd48f153dd7d095a74bcb2120f98c3244542 Mon Sep 17 00:00:00 2001 From: Subhobrata Dey Date: Mon, 25 Jan 2021 08:31:21 -0800 Subject: [PATCH] #9 Encoders for MQTT Signed-off-by: Subhobrata Dey --- cloudevents-sdk-paho-mqtt/src/mqtt_producer_record.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cloudevents-sdk-paho-mqtt/src/mqtt_producer_record.rs b/cloudevents-sdk-paho-mqtt/src/mqtt_producer_record.rs index 8e6d4d92..dbd5c3ff 100644 --- a/cloudevents-sdk-paho-mqtt/src/mqtt_producer_record.rs +++ b/cloudevents-sdk-paho-mqtt/src/mqtt_producer_record.rs @@ -141,9 +141,8 @@ impl MessageBuilderExt for MessageBuilder { } match message_record.payload { - Some(s) => - self = self.payload(s), - None => () + Some(s) => self = self.payload(s), + None => (), } self