mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-21 02:33:23 +00:00
Apply suggestions from clippy 1.81
This commit is contained in:
committed by
Floris Bruynooghe
parent
dcf16a64b4
commit
fe79e06843
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user