From 68e24d833c55a094f4a1d3461033628c2a336eec Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Tue, 16 Nov 2021 19:34:11 -0600 Subject: [PATCH] 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. --- rust/src/dhcp/dhcp.rs | 4 ++-- rust/src/log.rs | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) 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 { -- 2.47.2