From: Jason Ish Date: Wed, 17 Nov 2021 01:34:11 +0000 (-0600) Subject: rust: fix urls in comments X-Git-Tag: suricata-5.0.9~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6644%2Fhead;p=thirdparty%2Fsuricata.git rust: fix urls in comments rustdoc was complaining about the format of the URL in a comment while trying to generate documentation. Convert the comment to a non-rustdoc comment for now to satisfy rustdoc. --- diff --git a/rust/src/dhcp/dhcp.rs b/rust/src/dhcp/dhcp.rs index 5ed17277c5..43e72df967 100644 --- a/rust/src/dhcp/dhcp.rs +++ b/rust/src/dhcp/dhcp.rs @@ -58,8 +58,8 @@ pub const DHCP_TYPE_NAK: u8 = 6; pub const DHCP_TYPE_RELEASE: u8 = 7; pub const DHCP_TYPE_INFORM: u8 = 8; -/// DHCP parameter types. -/// https://www.iana.org/assignments/bootp-dhcp-parameters/bootp-dhcp-parameters.txt +// DHCP parameter types. +// https://www.iana.org/assignments/bootp-dhcp-parameters/bootp-dhcp-parameters.txt pub const DHCP_PARAM_SUBNET_MASK: u8 = 1; pub const DHCP_PARAM_ROUTER: u8 = 3; pub const DHCP_PARAM_DNS_SERVER: u8 = 6; diff --git a/rust/src/log.rs b/rust/src/log.rs index eb74c6ebec..9f110ed7dd 100644 --- a/rust/src/log.rs +++ b/rust/src/log.rs @@ -81,9 +81,10 @@ macro_rules!function { &name[..name.len() - 5] }} } -/// Return the function name, but for now just return as Rust -/// has no macro to return the function name, but may in the future, -/// see: https://github.com/rust-lang/rfcs/pull/1719 + +// Return the function name, but for now just return as Rust +// has no macro to return the function name, but may in the future, +// see: https://github.com/rust-lang/rfcs/pull/1719 #[cfg(not(feature = "function-macro"))] #[macro_export(local_inner_macros)] macro_rules!function {