]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: fix warnings about wrong type of comments 3906/head
authorVictor Julien <victor@inliniac.net>
Mon, 3 Jun 2019 07:47:23 +0000 (09:47 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 3 Jun 2019 07:47:27 +0000 (09:47 +0200)
"rustdoc does not generate documentation for macro expansions"

rust/src/dhcp/parser.rs
rust/src/dns/parser.rs
rust/src/smb/smb_records.rs

index 312b3b146484fe4706b937955ed2ab6965abe18e..6b7402cd7b16bfe1fcac8f15484f7ae30c75829c 100644 (file)
@@ -169,8 +169,8 @@ named!(pub parse_generic_option<DHCPOption>,
            ))
 );
 
-/// Parse a single DHCP option. When option 255 (END) is parsed, the remaining
-/// data will be consumed.
+// Parse a single DHCP option. When option 255 (END) is parsed, the remaining
+// data will be consumed.
 named!(pub parse_option<DHCPOption>,
        switch!(peek!(be_u8),
                // End of options case. We consume the rest of the data
@@ -190,8 +190,8 @@ named!(pub parse_option<DHCPOption>,
                _ => call!(parse_generic_option)
        ));
 
-/// Parse and return all the options. Upon the end of option indicator
-/// all the data will be consumed.
+// Parse and return all the options. Upon the end of option indicator
+// all the data will be consumed.
 named!(pub parse_all_options<Vec<DHCPOption>>, many0!(complete!(call!(parse_option))));
 
 pub fn dhcp_parse(input: &[u8]) -> IResult<&[u8], DHCPMessage> {
index 4e1d551ef3e4b1c018905b559f55b2e8d593d058..1f4e8a13af23614fddb930b3c8b428337e24c2a3 100644 (file)
@@ -21,7 +21,7 @@ use nom::{IResult, be_u8, be_u16, be_u32};
 use nom;
 use dns::dns::*;
 
-/// Parse a DNS header.
+// Parse a DNS header.
 named!(pub dns_parse_header<DNSHeader>,
        do_parse!(
            tx_id: be_u16 >>
index 0bfc62bf113528cb9514ea64f502e3b2d5859f77..cdcdc2bfb2438aa1dd07766c9f0f89f3fcc6058e 100644 (file)
@@ -45,7 +45,7 @@ pub fn smb_get_unicode_string(blob: &[u8]) -> IResult<&[u8], Vec<u8>>
     Err(nom::Err::Error(error_position!(blob,ErrorKind::Custom(130))))
 }
 
-/// parse an ASCII string that is null terminated
+// parse an ASCII string that is null terminated
 named!(pub smb_get_ascii_string<Vec<u8>>,
     do_parse!(
             s: take_until_and_consume!("\x00")