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