]> 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>
Mon, 16 Jul 2018 11:30:50 +0000 (13:30 +0200)
Removes rust compiler warning.

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

rust/src/dns/dns.rs

index 2ada13aaf8f1e20a3dd1f7a80b2a345e315e0f4d..054b7471288264885ca04b36f32c7c4dcf86f6d5 100644 (file)
@@ -935,7 +935,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();