Skip to content

Commit 7c8f57e

Browse files
committed
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.
1 parent f31e718 commit 7c8f57e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

embassy-nrf/src/buffered_uarte.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarte<'d, U, T> {
219219
/// # Panics
220220
///
221221
/// Panics if `rx_buffer.len()` is odd.
222+
#[allow(clippy::too_many_arguments)]
222223
pub fn new(
223224
uarte: impl Peripheral<P = U> + 'd,
224225
timer: impl Peripheral<P = T> + 'd,
@@ -254,6 +255,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarte<'d, U, T> {
254255
/// # Panics
255256
///
256257
/// Panics if `rx_buffer.len()` is odd.
258+
#[allow(clippy::too_many_arguments)]
257259
pub fn new_with_rtscts(
258260
uarte: impl Peripheral<P = U> + 'd,
259261
timer: impl Peripheral<P = T> + 'd,
@@ -286,6 +288,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarte<'d, U, T> {
286288
)
287289
}
288290

291+
#[allow(clippy::too_many_arguments)]
289292
fn new_inner(
290293
peri: PeripheralRef<'d, U>,
291294
timer: PeripheralRef<'d, T>,
@@ -534,6 +537,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarteRx<'d, U, T> {
534537
/// # Panics
535538
///
536539
/// Panics if `rx_buffer.len()` is odd.
540+
#[allow(clippy::too_many_arguments)]
537541
pub fn new(
538542
uarte: impl Peripheral<P = U> + 'd,
539543
timer: impl Peripheral<P = T> + 'd,
@@ -564,6 +568,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarteRx<'d, U, T> {
564568
/// # Panics
565569
///
566570
/// Panics if `rx_buffer.len()` is odd.
571+
#[allow(clippy::too_many_arguments)]
567572
pub fn new_with_rts(
568573
uarte: impl Peripheral<P = U> + 'd,
569574
timer: impl Peripheral<P = T> + 'd,
@@ -590,6 +595,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarteRx<'d, U, T> {
590595
)
591596
}
592597

598+
#[allow(clippy::too_many_arguments)]
593599
fn new_inner(
594600
peri: PeripheralRef<'d, U>,
595601
timer: PeripheralRef<'d, T>,
@@ -614,6 +620,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarteRx<'d, U, T> {
614620
this
615621
}
616622

623+
#[allow(clippy::too_many_arguments)]
617624
fn new_innerer(
618625
peri: PeripheralRef<'d, U>,
619626
timer: PeripheralRef<'d, T>,

0 commit comments

Comments
 (0)