Skip to content

Commit

Permalink
chore: fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mlegner committed Jan 8, 2024
1 parent 9551bb6 commit 75a113d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/scion-proto/src/packet/headers/common_header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl CommonHeader {

/// The payload length as a usize.
pub fn payload_size(&self) -> usize {
usize::try_from(self.payload_length).expect("usize to be larger than 16-bits")
usize::from(self.payload_length)
}
}

Expand Down

0 comments on commit 75a113d

Please sign in to comment.