rust: fix clippy lints for clippy::crate_in_macro_def

pull/8073/head
Jason Ish 3 years ago committed by Victor Julien
parent 565da0d0af
commit e373d9f5e0

@ -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

Loading…
Cancel
Save