From: Jason Ish Date: Mon, 25 Jun 2018 14:40:54 +0000 (-0600) Subject: rust/dns - remove extra parantheses X-Git-Tag: suricata-4.1.0-rc1~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d83707bef9c95cc267618db2b38d288c9e24c5bc;p=thirdparty%2Fsuricata.git rust/dns - remove extra parantheses Removes rust compiler warning. Redmine issue: https://redmine.openinfosecfoundation.org/issues/2521 --- diff --git a/rust/src/dns/dns.rs b/rust/src/dns/dns.rs index 26fc45a85e..f6f2fd5810 100644 --- a/rust/src/dns/dns.rs +++ b/rust/src/dns/dns.rs @@ -914,7 +914,7 @@ mod tests { // than the available data. let mut request = Vec::new(); request.push(((dns_payload.len() as u16) >> 8) as u8); - request.push((((dns_payload.len() as u16) & 0xff) as u8 + 1)); + request.push(((dns_payload.len() as u16) & 0xff) as u8 + 1); request.extend(dns_payload); let mut state = DNSState::new();