From: Jeff Lucovsky Date: Sun, 29 May 2022 19:21:31 +0000 (-0400) Subject: rust: Unused doc comment warning fixup X-Git-Tag: suricata-6.0.6~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7437%2Fhead;p=thirdparty%2Fsuricata.git 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. --- 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,