Skip to content

Commit

Permalink
Apply suggestions from clippy 1.81
Browse files Browse the repository at this point in the history
  • Loading branch information
djc authored and Ralith committed Sep 6, 2024
1 parent 8bdbf42 commit 00df048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quinn-udp/src/cmsg/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl<'a, M: MsgHdr> Encoder<'a, M> {
/// # Panics
/// - If insufficient buffer space remains.
/// - If `T` has stricter alignment requirements than `M::ControlMessage`
pub(crate) fn push<T: Copy + ?Sized>(&mut self, level: c_int, ty: c_int, value: T) {
pub(crate) fn push<T: Copy>(&mut self, level: c_int, ty: c_int, value: T) {
assert!(mem::align_of::<T>() <= mem::align_of::<M::ControlMessage>());
let space = M::ControlMessage::cmsg_space(mem::size_of_val(&value));
assert!(
Expand Down

0 comments on commit 00df048

Please sign in to comment.