]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: fix doc comments that trigger rust warnings 7453/head
authorJuliana Fajardini <jufajardini@gmail.com>
Thu, 26 May 2022 23:28:41 +0000 (20:28 -0300)
committerVictor Julien <vjulien@oisf.net>
Tue, 31 May 2022 15:45:52 +0000 (17:45 +0200)
Rust generates warnings that are treated as errors for documentation
blocks before `extern` blocks.

(cherry picked from commit 6ccc01a79c07a5e7f8f46796f026ca50e7b7ee66)

rust/src/core.rs
rust/src/json.rs

index 336b3073047c64f33876697f90645f8d9394e54b..9c03c5be28c110960a7028a5705d14989891b096 100644 (file)
@@ -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);
 }
index d5e2db6aa465bc643c785ec4bb829c1349b38a3e..0374fdbd9e6e241dbde4edc8a1c05edccf4f5eb7 100644 (file)
@@ -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,