]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: fix clippy lints for clippy::crate_in_macro_def
authorJason Ish <jason.ish@oisf.net>
Wed, 5 Oct 2022 14:59:31 +0000 (08:59 -0600)
committerVictor Julien <vjulien@oisf.net>
Mon, 24 Oct 2022 09:20:08 +0000 (11:20 +0200)
rust/src/applayer.rs

index 2d22e7a49a65898fda8ab18d869439feef8dd9a1..edb5891e2afd06f16cf519daacbb3ca1f3eccbaf 100644 (file)
@@ -183,7 +183,7 @@ macro_rules!export_tx_data_get {
     ($name:ident, $type:ty) => {
         #[no_mangle]
         pub unsafe extern "C" fn $name(tx: *mut std::os::raw::c_void)
-            -> *mut crate::applayer::AppLayerTxData
+            -> *mut $crate::applayer::AppLayerTxData
         {
             let tx = &mut *(tx as *mut $type);
             &mut tx.tx_data
@@ -213,7 +213,7 @@ macro_rules!export_state_data_get {
     ($name:ident, $type:ty) => {
         #[no_mangle]
         pub unsafe extern "C" fn $name(state: *mut std::os::raw::c_void)
-            -> *mut crate::applayer::AppLayerStateData
+            -> *mut $crate::applayer::AppLayerStateData
         {
             let state = &mut *(state as *mut $type);
             &mut state.state_data