From 98469b0f564595e2eefc9c59da1b3d577862fcad Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Mon, 6 Apr 2026 12:11:02 -0600 Subject: [PATCH] rust/ffi: fix clippy warnings Remove the unneeded return. The other option would be to allow it, but so far in the ffi crate we don't have any non-default allows. --- rust/ffi/src/detect.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rust/ffi/src/detect.rs b/rust/ffi/src/detect.rs index 97d2ce517f..9eb1dbb41a 100644 --- a/rust/ffi/src/detect.rs +++ b/rust/ffi/src/detect.rs @@ -56,17 +56,17 @@ fn helper_keyword_register_buffer_flags(kw: &SigTableElmtStickyBuffer, flags: u3 unsafe { let r = SCDetectHelperKeywordRegister(&st); SCDetectHelperKeywordSetCleanCString(r); - return r; + r } } pub fn helper_keyword_register_multi_buffer(kw: &SigTableElmtStickyBuffer) -> u16 { - return helper_keyword_register_buffer_flags( + helper_keyword_register_buffer_flags( kw, SIGMATCH_NOOPT | SIGMATCH_INFO_STICKY_BUFFER | SIGMATCH_INFO_MULTI_BUFFER, - ); + ) } pub fn helper_keyword_register_sticky_buffer(kw: &SigTableElmtStickyBuffer) -> u16 { - return helper_keyword_register_buffer_flags(kw, SIGMATCH_NOOPT | SIGMATCH_INFO_STICKY_BUFFER); + helper_keyword_register_buffer_flags(kw, SIGMATCH_NOOPT | SIGMATCH_INFO_STICKY_BUFFER) }