mqtt: rustfmt mqtt.rs

pull/8945/head
Haleema Khan 2 years ago committed by Victor Julien
parent e474858e25
commit 8e19906afa

@ -621,7 +621,9 @@ impl MQTTState {
self.transactions.push_back(tx);
}
fn mqtt_hdr_and_data_frames(&mut self, flow: *const Flow, stream_slice: &StreamSlice, input: &MQTTMessage) {
fn mqtt_hdr_and_data_frames(
&mut self, flow: *const Flow, stream_slice: &StreamSlice, input: &MQTTMessage,
) {
let hdr = stream_slice.as_slice();
//MQTT payload has a fixed header of 2 bytes
let _mqtt_hdr = Frame::new(flow, stream_slice, hdr, 2, MQTTFrameType::Header as u8);
@ -831,4 +833,4 @@ pub unsafe extern "C" fn rs_mqtt_register_parser(cfg_max_msg_len: u32) {
} else {
SCLogDebug!("Protocol detector and parser disabled for MQTT.");
}
}
}

Loading…
Cancel
Save