nrf: buffered_uarte: Add overrides for too_many_arguments lint
One possible future fix for this could be refactoring at least ppi arguments into separate struct.
This commit is contained in:
parent
f31e718331
commit
7c8f57e564
@ -219,6 +219,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarte<'d, U, T> {
|
|||||||
/// # Panics
|
/// # Panics
|
||||||
///
|
///
|
||||||
/// Panics if `rx_buffer.len()` is odd.
|
/// Panics if `rx_buffer.len()` is odd.
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new(
|
pub fn new(
|
||||||
uarte: impl Peripheral<P = U> + 'd,
|
uarte: impl Peripheral<P = U> + 'd,
|
||||||
timer: impl Peripheral<P = T> + 'd,
|
timer: impl Peripheral<P = T> + 'd,
|
||||||
@ -254,6 +255,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarte<'d, U, T> {
|
|||||||
/// # Panics
|
/// # Panics
|
||||||
///
|
///
|
||||||
/// Panics if `rx_buffer.len()` is odd.
|
/// Panics if `rx_buffer.len()` is odd.
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new_with_rtscts(
|
pub fn new_with_rtscts(
|
||||||
uarte: impl Peripheral<P = U> + 'd,
|
uarte: impl Peripheral<P = U> + 'd,
|
||||||
timer: impl Peripheral<P = T> + 'd,
|
timer: impl Peripheral<P = T> + 'd,
|
||||||
@ -286,6 +288,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarte<'d, U, T> {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn new_inner(
|
fn new_inner(
|
||||||
peri: PeripheralRef<'d, U>,
|
peri: PeripheralRef<'d, U>,
|
||||||
timer: PeripheralRef<'d, T>,
|
timer: PeripheralRef<'d, T>,
|
||||||
@ -534,6 +537,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarteRx<'d, U, T> {
|
|||||||
/// # Panics
|
/// # Panics
|
||||||
///
|
///
|
||||||
/// Panics if `rx_buffer.len()` is odd.
|
/// Panics if `rx_buffer.len()` is odd.
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new(
|
pub fn new(
|
||||||
uarte: impl Peripheral<P = U> + 'd,
|
uarte: impl Peripheral<P = U> + 'd,
|
||||||
timer: impl Peripheral<P = T> + 'd,
|
timer: impl Peripheral<P = T> + 'd,
|
||||||
@ -564,6 +568,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarteRx<'d, U, T> {
|
|||||||
/// # Panics
|
/// # Panics
|
||||||
///
|
///
|
||||||
/// Panics if `rx_buffer.len()` is odd.
|
/// Panics if `rx_buffer.len()` is odd.
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new_with_rts(
|
pub fn new_with_rts(
|
||||||
uarte: impl Peripheral<P = U> + 'd,
|
uarte: impl Peripheral<P = U> + 'd,
|
||||||
timer: impl Peripheral<P = T> + 'd,
|
timer: impl Peripheral<P = T> + 'd,
|
||||||
@ -590,6 +595,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarteRx<'d, U, T> {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn new_inner(
|
fn new_inner(
|
||||||
peri: PeripheralRef<'d, U>,
|
peri: PeripheralRef<'d, U>,
|
||||||
timer: PeripheralRef<'d, T>,
|
timer: PeripheralRef<'d, T>,
|
||||||
@ -614,6 +620,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarteRx<'d, U, T> {
|
|||||||
this
|
this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
fn new_innerer(
|
fn new_innerer(
|
||||||
peri: PeripheralRef<'d, U>,
|
peri: PeripheralRef<'d, U>,
|
||||||
timer: PeripheralRef<'d, T>,
|
timer: PeripheralRef<'d, T>,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user