From c9a9a2a33f216765148f8baa0d6a95604b445beb 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 --- 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