]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust/dns - remove extra parantheses
authorJason Ish <ish@unx.ca>
Mon, 25 Jun 2018 14:40:54 +0000 (08:40 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 27 Jun 2018 11:46:57 +0000 (13:46 +0200)
Removes rust compiler warning.

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/2521

rust/src/dns/dns.rs

index 26fc45a85e55c9551046ef145492be5a464720d2..f6f2fd5810ec5049f85bb9299d38891452876944 100644 (file)
@@ -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();