]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust(lint): removed unused unit () return
authorJason Ish <jason.ish@oisf.net>
Fri, 20 Aug 2021 17:20:49 +0000 (11:20 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 23 Aug 2021 08:03:12 +0000 (10:03 +0200)
This is code that is not needed and is a bit confusing to see.

rust/src/ike/ikev2.rs

index c6e4d24f7cb886e2482e65fe7135d96aef348df1..6a597c9e8e2c177b3845afb64ce9f07f7231659c 100644 (file)
@@ -209,7 +209,6 @@ pub fn handle_ikev2(
         }
         _e => {
             SCLogDebug!("parse_ikev2_payload_with_type: {:?}", _e);
-            ()
         }
     }
     return AppLayerResult::ok();
@@ -256,7 +255,6 @@ fn add_proposals(state: &mut IKEState, prop: &Vec<IkeV2Proposal>, direction: u8)
                         IkeTransformAuthType::NONE => {
                             // Note: this could be expected with an AEAD encription alg.
                             // See rule 4
-                            ()
                         }
                         IkeTransformAuthType::AUTH_HMAC_MD5_96
                         | IkeTransformAuthType::AUTH_HMAC_SHA1_96