From: Juliana Fajardini Date: Thu, 26 May 2022 23:28:41 +0000 (-0300) Subject: rust: fix doc comments that trigger rust warnings X-Git-Tag: suricata-5.0.10~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7453%2Fhead;p=thirdparty%2Fsuricata.git rust: fix doc comments that trigger rust warnings Rust generates warnings that are treated as errors for documentation blocks before `extern` blocks. (cherry picked from commit 6ccc01a79c07a5e7f8f46796f026ca50e7b7ee66) --- diff --git a/rust/src/core.rs b/rust/src/core.rs index 336b307304..9c03c5be28 100644 --- a/rust/src/core.rs +++ b/rust/src/core.rs @@ -188,7 +188,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/json.rs b/rust/src/json.rs index d5e2db6aa4..0374fdbd9e 100644 --- a/rust/src/json.rs +++ b/rust/src/json.rs @@ -24,7 +24,7 @@ use std::os::raw::c_char; /// The Rust place holder for the json_t pointer. pub enum JsonT {} -/// Expose the jansson functions we need. +// Expose the jansson functions we need. extern { fn json_object() -> *mut JsonT; fn json_object_set_new(js: *mut JsonT, key: *const c_char,