diff --git a/rust/src/lib.rs b/rust/src/lib.rs index ba68d009cf..53b078dd5a 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -36,7 +36,6 @@ #![allow(clippy::module_inception)] #![allow(clippy::never_loop)] #![allow(clippy::new_without_default)] -#![allow(clippy::nonminimal_bool)] #![allow(clippy::redundant_pattern_matching)] #![allow(clippy::result_unit_err)] #![allow(clippy::type_complexity)] diff --git a/rust/src/smb/smb2.rs b/rust/src/smb/smb2.rs index ac02201cf6..0c1daba6d7 100644 --- a/rust/src/smb/smb2.rs +++ b/rust/src/smb/smb2.rs @@ -188,7 +188,7 @@ pub fn smb2_read_response_record<'b>(state: &mut SMBState, r: &Smb2Record<'b>) Some(n) => (n.name.to_vec(), n.is_pipe), _ => { (Vec::new(), false) }, }; - let mut is_dcerpc = if is_pipe || (share_name.is_empty() && !is_pipe) { + let mut is_dcerpc = if is_pipe || share_name.is_empty() { state.get_service_for_guid(&file_guid).1 } else { false @@ -327,7 +327,7 @@ pub fn smb2_write_request_record<'b>(state: &mut SMBState, r: &Smb2Record<'b>) Some(n) => { (n.name.to_vec(), n.is_pipe) }, _ => { (Vec::new(), false) }, }; - let mut is_dcerpc = if is_pipe || (share_name.is_empty() && !is_pipe) { + let mut is_dcerpc = if is_pipe || share_name.is_empty() { state.get_service_for_guid(wr.guid).1 } else { false