diff --git a/rust/src/smb/dcerpc.rs b/rust/src/smb/dcerpc.rs index e2f902fdf1..7cb9b7d6d9 100644 --- a/rust/src/smb/dcerpc.rs +++ b/rust/src/smb/dcerpc.rs @@ -194,7 +194,7 @@ impl SMBTransactionDCERPC { impl SMBState { fn new_dcerpc_tx(&mut self, hdr: SMBCommonHdr, vercmd: SMBVerCmdStat, cmd: u8, call_id: u32) - -> (&mut SMBTransaction) + -> &mut SMBTransaction { let mut tx = self.new_tx(); tx.hdr = hdr; @@ -209,7 +209,7 @@ impl SMBState { } fn new_dcerpc_tx_for_response(&mut self, hdr: SMBCommonHdr, vercmd: SMBVerCmdStat, call_id: u32) - -> (&mut SMBTransaction) + -> &mut SMBTransaction { let mut tx = self.new_tx(); tx.hdr = hdr; diff --git a/rust/src/smb/session.rs b/rust/src/smb/session.rs index 30025c9cc4..941b9eb300 100644 --- a/rust/src/smb/session.rs +++ b/rust/src/smb/session.rs @@ -42,7 +42,7 @@ impl SMBTransactionSessionSetup { impl SMBState { pub fn new_sessionsetup_tx(&mut self, hdr: SMBCommonHdr) - -> (&mut SMBTransaction) + -> &mut SMBTransaction { let mut tx = self.new_tx(); diff --git a/rust/src/smb/smb.rs b/rust/src/smb/smb.rs index 7db31a4da0..b74bf2e914 100644 --- a/rust/src/smb/smb.rs +++ b/rust/src/smb/smb.rs @@ -394,7 +394,7 @@ impl SMBTransactionSetFilePathInfo { impl SMBState { pub fn new_setfileinfo_tx(&mut self, filename: Vec, fid: Vec, subcmd: u16, loi: u16, delete_on_close: bool) - -> (&mut SMBTransaction) + -> &mut SMBTransaction { let mut tx = self.new_tx(); @@ -412,7 +412,7 @@ impl SMBState { pub fn new_setpathinfo_tx(&mut self, filename: Vec, subcmd: u16, loi: u16, delete_on_close: bool) - -> (&mut SMBTransaction) + -> &mut SMBTransaction { let mut tx = self.new_tx(); @@ -447,7 +447,7 @@ impl SMBTransactionRename { impl SMBState { pub fn new_rename_tx(&mut self, fuid: Vec, oldname: Vec, newname: Vec) - -> (&mut SMBTransaction) + -> &mut SMBTransaction { let mut tx = self.new_tx(); @@ -924,7 +924,7 @@ impl SMBState { * track a single cmd request/reply pair. */ pub fn new_generic_tx(&mut self, smb_ver: u8, smb_cmd: u16, key: SMBCommonHdr) - -> (&mut SMBTransaction) + -> &mut SMBTransaction { let mut tx = self.new_tx(); if smb_ver == 1 && smb_cmd <= 255 { @@ -998,7 +998,7 @@ impl SMBState { } pub fn new_negotiate_tx(&mut self, smb_ver: u8) - -> (&mut SMBTransaction) + -> &mut SMBTransaction { let mut tx = self.new_tx(); if smb_ver == 1 { @@ -1040,7 +1040,7 @@ impl SMBState { } pub fn new_treeconnect_tx(&mut self, hdr: SMBCommonHdr, name: Vec) - -> (&mut SMBTransaction) + -> &mut SMBTransaction { let mut tx = self.new_tx(); diff --git a/rust/src/smb/smb2_ioctl.rs b/rust/src/smb/smb2_ioctl.rs index 20d010da35..480e8696bd 100644 --- a/rust/src/smb/smb2_ioctl.rs +++ b/rust/src/smb/smb2_ioctl.rs @@ -38,7 +38,7 @@ impl SMBTransactionIoctl { impl SMBState { pub fn new_ioctl_tx(&mut self, hdr: SMBCommonHdr, func: u32) - -> (&mut SMBTransaction) + -> &mut SMBTransaction { let mut tx = self.new_tx(); tx.hdr = hdr;