mirror of
https://github.com/Devolutions/IronRDP.git
synced 2025-08-04 15:18:17 +00:00
fix: unnecessary qualification
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
934177d772
commit
adf2797ef7
37 changed files with 94 additions and 100 deletions
|
@ -653,6 +653,8 @@ struct ChannelPduHeader {
|
|||
|
||||
impl ChannelPduHeader {
|
||||
const NAME: &'static str = "CHANNEL_PDU_HEADER";
|
||||
|
||||
const FIXED_PART_SIZE: usize = 4 /* len */ + 4 /* flags */;
|
||||
}
|
||||
|
||||
impl PduEncode for ChannelPduHeader {
|
||||
|
@ -668,6 +670,6 @@ impl PduEncode for ChannelPduHeader {
|
|||
|
||||
#[allow(clippy::arithmetic_side_effects)]
|
||||
fn size(&self) -> usize {
|
||||
std::mem::size_of::<u32>() * 2
|
||||
Self::FIXED_PART_SIZE
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue