]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: Get rid of unneeded macros, fix warnings
authorShivani Bhardwaj <shivanib134@gmail.com>
Wed, 4 Sep 2019 12:40:53 +0000 (18:10 +0530)
committerVictor Julien <victor@inliniac.net>
Fri, 6 Sep 2019 09:57:49 +0000 (11:57 +0200)
rust/src/lib.rs
rust/src/smb/dcerpc.rs

index 03a3a3b45db10cf7a56625215bef84524967c555..4673e72665f4f5e7dfff020bb3fefe7518e1e586 100644 (file)
@@ -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]
index 1210ecda569178b62ebe0cc8b518ac20c6fb169f..1b947e841ea834aa5c346de84a6e16e4dee56dda 100644 (file)
@@ -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);
             }