diff --git a/rust/src/detect/byte_math.rs b/rust/src/detect/byte_math.rs index 98e3def601..3922c1eb94 100644 --- a/rust/src/detect/byte_math.rs +++ b/rust/src/detect/byte_math.rs @@ -469,7 +469,7 @@ mod tests { nbytes: nbytes, offset: offset, oper: oper, - rvalue_str: if rvalue_str != "" { + rvalue_str: if !rvalue_str.is_empty() { CString::new(rvalue_str).unwrap().into_raw() } else { std::ptr::null_mut()