From b1d493184204c1cffcb5427bc947ac8e5ff5573f Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 3 Jun 2019 09:47:23 +0200 Subject: [PATCH] rust: fix warnings about wrong type of comments "rustdoc does not generate documentation for macro expansions" --- rust/src/dhcp/parser.rs | 8 ++++---- rust/src/dns/parser.rs | 2 +- rust/src/smb/smb_records.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rust/src/dhcp/parser.rs b/rust/src/dhcp/parser.rs index 312b3b1464..6b7402cd7b 100644 --- a/rust/src/dhcp/parser.rs +++ b/rust/src/dhcp/parser.rs @@ -169,8 +169,8 @@ named!(pub parse_generic_option, )) ); -/// 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, switch!(peek!(be_u8), // End of options case. We consume the rest of the data @@ -190,8 +190,8 @@ named!(pub parse_option, _ => 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>, many0!(complete!(call!(parse_option)))); pub fn dhcp_parse(input: &[u8]) -> IResult<&[u8], DHCPMessage> { diff --git a/rust/src/dns/parser.rs b/rust/src/dns/parser.rs index 4e1d551ef3..1f4e8a13af 100644 --- a/rust/src/dns/parser.rs +++ b/rust/src/dns/parser.rs @@ -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, do_parse!( tx_id: be_u16 >> diff --git a/rust/src/smb/smb_records.rs b/rust/src/smb/smb_records.rs index 0bfc62bf11..cdcdc2bfb2 100644 --- a/rust/src/smb/smb_records.rs +++ b/rust/src/smb/smb_records.rs @@ -45,7 +45,7 @@ pub fn smb_get_unicode_string(blob: &[u8]) -> IResult<&[u8], Vec> 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>, do_parse!( s: take_until_and_consume!("\x00") -- 2.47.2