]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: Unused doc comment warning fixup 7437/head
authorJeff Lucovsky <jeff@lucovsky.org>
Sun, 29 May 2022 19:21:31 +0000 (15:21 -0400)
committerJeff Lucovsky <jeff@lucovsky.org>
Sun, 29 May 2022 19:23:24 +0000 (15:23 -0400)
Since rustdoc does not generate documentation for extern blocks, Fedora
35 builds flagged 2 occurrences where doc comments existed on extern C
blocks.

rust/src/core.rs
rust/src/http2/http2.rs

index 3a5440039e7f768e0c5e57bdac3cb51518cb6c63..8c3d7650274783b64498c28e39d41f2929c11c2a 100644 (file)
@@ -221,7 +221,7 @@ pub fn sc_app_layer_decoder_events_free_events(
 /// Opaque flow type (defined in C)
 pub enum Flow {}
 
-/// Extern functions operating on Flow.
+// Extern functions operating on Flow.
 extern {
     pub fn FlowGetLastTimeAsParts(flow: &Flow, secs: *mut u64, usecs: *mut u64);
 }
index c4452cdab852c3bf87f2410407fc6b3c4f95afaf..6536d4141a10ddb8fdc103c0c6f7a71d5770796a 100644 (file)
@@ -1010,7 +1010,7 @@ pub extern "C" fn rs_http2_probing_parser_tc(
     return ALPROTO_UNKNOWN;
 }
 
-/// Extern functions operating on HTTP2.
+// Extern functions operating on HTTP2.
 extern "C" {
     pub fn HTTP2MimicHttp1Request(
         orig_state: *mut std::os::raw::c_void, new_state: *mut std::os::raw::c_void,