From: Victor Julien Date: Fri, 12 May 2023 05:04:17 +0000 (+0200) Subject: rust/doc: fix doc compile issues X-Git-Tag: suricata-7.0.0-rc2~157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4c60924f1c6f692192bef8584d0ea53d1f342d2;p=thirdparty%2Fsuricata.git rust/doc: fix doc compile issues --- diff --git a/rust/src/applayer.rs b/rust/src/applayer.rs index 9dfde28491..3f33c5f9d8 100644 --- a/rust/src/applayer.rs +++ b/rust/src/applayer.rs @@ -588,19 +588,20 @@ pub trait AppLayerEvent { ) -> i8; } +// +// Normally usage of this function will be generated by +// derive(AppLayerEvent), for example: +// +// #[derive(AppLayerEvent)] +// enum AppEvent { +// EventOne, +// EventTwo, +// } +// +// get_event_info::(...) + /// Generic `get_info_info` implementation for enums implementing /// AppLayerEvent. -/// -/// Normally usage of this function will be generated by -/// derive(AppLayerEvent), for example: -/// -/// #[derive(AppLayerEvent)] -/// enum AppEvent { -/// EventOne, -/// EventTwo, -/// } -/// -/// get_event_info::(...) #[inline(always)] pub unsafe fn get_event_info( event_name: *const std::os::raw::c_char,