]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: fix urls in comments 6644/head
authorJason Ish <jason.ish@oisf.net>
Wed, 17 Nov 2021 01:34:11 +0000 (19:34 -0600)
committerJason Ish <jason.ish@oisf.net>
Wed, 24 Nov 2021 15:48:02 +0000 (09:48 -0600)
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
rust/src/log.rs

index 5ed17277c5e1035de50c09bae004eed583b1ef2e..43e72df967186b9ab6d07d08e8d580749b20c017 100644 (file)
@@ -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;
index eb74c6ebecffe55fbaad4b421aa3814159fc196e..9f110ed7ddf8ed7e5b65096e13ddbb0201a18dd1 100644 (file)
@@ -81,9 +81,10 @@ macro_rules!function {
          &name[..name.len() - 5]
     }}
 }
-/// Return the function name, but for now just return <rust> 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 <rust> 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 {