From d0be7541e9b8671dae34898912eab34873460980 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Fri, 20 Aug 2021 11:20:49 -0600 Subject: [PATCH] rust(lint): removed unused unit () return This is code that is not needed and is a bit confusing to see. --- rust/src/ike/ikev2.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/rust/src/ike/ikev2.rs b/rust/src/ike/ikev2.rs index c6e4d24f7c..6a597c9e8e 100644 --- a/rust/src/ike/ikev2.rs +++ b/rust/src/ike/ikev2.rs @@ -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, 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