Apply suggestions from clippy 1.81

This commit is contained in:
Dirkjan Ochtman
2024-09-06 09:16:29 +02:00
committed by Floris Bruynooghe
parent dcf16a64b4
commit fe79e06843
+1 -1
View File
@@ -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!(