rust: Get rid of unneeded macros, fix warnings

pull/4180/head
Shivani Bhardwaj 6 years ago committed by Victor Julien
parent a3e5b91668
commit 8bebea5d4c

@ -15,7 +15,6 @@
* 02110-1301, USA.
*/
#![allow(ellipsis_inclusive_range_patterns)] // TODO: Remove when MSRV is higher than 1.24
#![cfg_attr(feature = "strict", deny(warnings))]
#[macro_use]

@ -360,7 +360,7 @@ pub fn smb_write_dcerpc_record<'b>(state: &mut SMBState,
},
}
}
21...255 => {
21..=255 => {
tx.set_event(SMBEvent::MalformedData);
},
_ => { }, // valid type w/o special processing
@ -478,7 +478,7 @@ fn dcerpc_response_handle<'b>(tx: &mut SMBTransaction,
DCERPC_TYPE_BINDACK => {
// handled elsewhere
},
21...255 => {
21..=255 => {
if let Some(SMBTransactionTypeData::DCERPC(ref mut tdn)) = tx.type_data {
tdn.set_result(dcer.packet_type);
}

Loading…
Cancel
Save