From aa396f4f5e1b971b4250813e0e551d1479b2b15d Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Sun, 29 May 2022 15:21:31 -0400 Subject: [PATCH] rust: Unused doc comment warning fixup 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 | 2 +- rust/src/http2/http2.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/src/core.rs b/rust/src/core.rs index 3a5440039e..8c3d765027 100644 --- a/rust/src/core.rs +++ b/rust/src/core.rs @@ -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); } diff --git a/rust/src/http2/http2.rs b/rust/src/http2/http2.rs index c4452cdab8..6536d4141a 100644 --- a/rust/src/http2/http2.rs +++ b/rust/src/http2/http2.rs @@ -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, -- 2.47.2