fix: unnecessary qualification

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2024-07-23 17:59:37 +04:00 committed by Benoît Cortier
parent 934177d772
commit adf2797ef7
37 changed files with 94 additions and 100 deletions

View file

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