From 720f84ebce13cdeb9c219afb75d294b8c293a7da Mon Sep 17 00:00:00 2001 From: Juliana Fajardini Date: Thu, 26 May 2022 20:28:41 -0300 Subject: [PATCH] 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) --- rust/src/core.rs | 2 +- rust/src/json.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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, -- 2.47.2