some clippy warning ignored
This commit is contained in:
parent
b175500971
commit
8717d07369
@ -1297,6 +1297,7 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Receive the buffer, also reading the LLMP internal message flags
|
/// Receive the buffer, also reading the LLMP internal message flags
|
||||||
|
#[allow(clippy::type_complexity)]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn recv_buf_with_flags(&mut self) -> Result<Option<(ClientId, Tag, Flags, &[u8])>, Error> {
|
pub fn recv_buf_with_flags(&mut self) -> Result<Option<(ClientId, Tag, Flags, &[u8])>, Error> {
|
||||||
unsafe {
|
unsafe {
|
||||||
@ -1780,6 +1781,7 @@ where
|
|||||||
/// This function returns the ShMemDescription the client uses to place incoming messages.
|
/// This function returns the ShMemDescription the client uses to place incoming messages.
|
||||||
/// The thread exits, when the remote broker disconnects.
|
/// The thread exits, when the remote broker disconnects.
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
|
#[allow(clippy::let_and_return)]
|
||||||
fn b2b_thread_on(
|
fn b2b_thread_on(
|
||||||
mut stream: TcpStream,
|
mut stream: TcpStream,
|
||||||
shmem_provider: &SP,
|
shmem_provider: &SP,
|
||||||
@ -2353,6 +2355,7 @@ where
|
|||||||
self.receiver.recv_buf_blocking()
|
self.receiver.recv_buf_blocking()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::type_complexity)]
|
||||||
pub fn recv_buf_with_flags(&mut self) -> Result<Option<(ClientId, Tag, Flags, &[u8])>, Error> {
|
pub fn recv_buf_with_flags(&mut self) -> Result<Option<(ClientId, Tag, Flags, &[u8])>, Error> {
|
||||||
self.receiver.recv_buf_with_flags()
|
self.receiver.recv_buf_with_flags()
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ pub use libc::{c_void, siginfo_t};
|
|||||||
|
|
||||||
#[derive(IntoPrimitive, TryFromPrimitive, Clone, Copy)]
|
#[derive(IntoPrimitive, TryFromPrimitive, Clone, Copy)]
|
||||||
#[repr(i32)]
|
#[repr(i32)]
|
||||||
#[allow(clippy::clippy::pub_enum_variant_names)]
|
#[allow(clippy::pub_enum_variant_names)]
|
||||||
pub enum Signal {
|
pub enum Signal {
|
||||||
SigAbort = SIGABRT,
|
SigAbort = SIGABRT,
|
||||||
SigBus = SIGBUS,
|
SigBus = SIGBUS,
|
||||||
|
@ -380,6 +380,10 @@ mod unix_signal_handler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Crash-Handler for in-process fuzzing.
|
||||||
|
/// Will be used for signal handling.
|
||||||
|
/// It will store the current State to shmem, then exit.
|
||||||
|
#[allow(clippy::too_many_lines)]
|
||||||
pub unsafe fn inproc_crash_handler<EM, I, OC, OFT, OT, S>(
|
pub unsafe fn inproc_crash_handler<EM, I, OC, OFT, OT, S>(
|
||||||
_signal: Signal,
|
_signal: Signal,
|
||||||
_info: siginfo_t,
|
_info: siginfo_t,
|
||||||
|
@ -39,7 +39,7 @@ where
|
|||||||
fn iterations(&self, state: &mut S) -> usize;
|
fn iterations(&self, state: &mut S) -> usize;
|
||||||
|
|
||||||
/// Runs this (mutational) stage for the given testcase
|
/// Runs this (mutational) stage for the given testcase
|
||||||
#[allow(clippy::clippy::cast_possible_wrap)] // more than i32 stages on 32 bit system - highly unlikely...
|
#[allow(clippy::cast_possible_wrap)] // more than i32 stages on 32 bit system - highly unlikely...
|
||||||
fn perform_mutational(
|
fn perform_mutational(
|
||||||
&mut self,
|
&mut self,
|
||||||
state: &mut S,
|
state: &mut S,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user