diff options
| author | Priit Laes <[email protected]> | 2024-08-08 11:02:07 +0300 |
|---|---|---|
| committer | Priit Laes <[email protected]> | 2024-08-08 23:01:03 +0300 |
| commit | 7c8f57e5641857cab0f8df8277fd7165faf87ecb (patch) | |
| tree | 558b3f8a9a051c3ce23f1962e1be0ba287c20fec /embassy-nrf/src/buffered_uarte.rs | |
| parent | f31e718331ea5cf301015e28af3d316b750db503 (diff) | |
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.
Diffstat (limited to 'embassy-nrf/src/buffered_uarte.rs')
| -rw-r--r-- | embassy-nrf/src/buffered_uarte.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/embassy-nrf/src/buffered_uarte.rs b/embassy-nrf/src/buffered_uarte.rs index b368a3d33..159b4db8f 100644 --- a/embassy-nrf/src/buffered_uarte.rs +++ b/embassy-nrf/src/buffered_uarte.rs | |||
| @@ -219,6 +219,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarte<'d, U, T> { | |||
| 219 | /// # Panics | 219 | /// # Panics |
| 220 | /// | 220 | /// |
| 221 | /// Panics if `rx_buffer.len()` is odd. | 221 | /// Panics if `rx_buffer.len()` is odd. |
| 222 | #[allow(clippy::too_many_arguments)] | ||
| 222 | pub fn new( | 223 | pub fn new( |
| 223 | uarte: impl Peripheral<P = U> + 'd, | 224 | uarte: impl Peripheral<P = U> + 'd, |
| 224 | timer: impl Peripheral<P = T> + 'd, | 225 | timer: impl Peripheral<P = T> + 'd, |
| @@ -254,6 +255,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarte<'d, U, T> { | |||
| 254 | /// # Panics | 255 | /// # Panics |
| 255 | /// | 256 | /// |
| 256 | /// Panics if `rx_buffer.len()` is odd. | 257 | /// Panics if `rx_buffer.len()` is odd. |
| 258 | #[allow(clippy::too_many_arguments)] | ||
| 257 | pub fn new_with_rtscts( | 259 | pub fn new_with_rtscts( |
| 258 | uarte: impl Peripheral<P = U> + 'd, | 260 | uarte: impl Peripheral<P = U> + 'd, |
| 259 | timer: impl Peripheral<P = T> + 'd, | 261 | timer: impl Peripheral<P = T> + 'd, |
| @@ -286,6 +288,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarte<'d, U, T> { | |||
| 286 | ) | 288 | ) |
| 287 | } | 289 | } |
| 288 | 290 | ||
| 291 | #[allow(clippy::too_many_arguments)] | ||
| 289 | fn new_inner( | 292 | fn new_inner( |
| 290 | peri: PeripheralRef<'d, U>, | 293 | peri: PeripheralRef<'d, U>, |
| 291 | timer: PeripheralRef<'d, T>, | 294 | timer: PeripheralRef<'d, T>, |
| @@ -534,6 +537,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarteRx<'d, U, T> { | |||
| 534 | /// # Panics | 537 | /// # Panics |
| 535 | /// | 538 | /// |
| 536 | /// Panics if `rx_buffer.len()` is odd. | 539 | /// Panics if `rx_buffer.len()` is odd. |
| 540 | #[allow(clippy::too_many_arguments)] | ||
| 537 | pub fn new( | 541 | pub fn new( |
| 538 | uarte: impl Peripheral<P = U> + 'd, | 542 | uarte: impl Peripheral<P = U> + 'd, |
| 539 | timer: impl Peripheral<P = T> + 'd, | 543 | timer: impl Peripheral<P = T> + 'd, |
| @@ -564,6 +568,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarteRx<'d, U, T> { | |||
| 564 | /// # Panics | 568 | /// # Panics |
| 565 | /// | 569 | /// |
| 566 | /// Panics if `rx_buffer.len()` is odd. | 570 | /// Panics if `rx_buffer.len()` is odd. |
| 571 | #[allow(clippy::too_many_arguments)] | ||
| 567 | pub fn new_with_rts( | 572 | pub fn new_with_rts( |
| 568 | uarte: impl Peripheral<P = U> + 'd, | 573 | uarte: impl Peripheral<P = U> + 'd, |
| 569 | timer: impl Peripheral<P = T> + 'd, | 574 | timer: impl Peripheral<P = T> + 'd, |
| @@ -590,6 +595,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarteRx<'d, U, T> { | |||
| 590 | ) | 595 | ) |
| 591 | } | 596 | } |
| 592 | 597 | ||
| 598 | #[allow(clippy::too_many_arguments)] | ||
| 593 | fn new_inner( | 599 | fn new_inner( |
| 594 | peri: PeripheralRef<'d, U>, | 600 | peri: PeripheralRef<'d, U>, |
| 595 | timer: PeripheralRef<'d, T>, | 601 | timer: PeripheralRef<'d, T>, |
| @@ -614,6 +620,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarteRx<'d, U, T> { | |||
| 614 | this | 620 | this |
| 615 | } | 621 | } |
| 616 | 622 | ||
| 623 | #[allow(clippy::too_many_arguments)] | ||
| 617 | fn new_innerer( | 624 | fn new_innerer( |
| 618 | peri: PeripheralRef<'d, U>, | 625 | peri: PeripheralRef<'d, U>, |
| 619 | timer: PeripheralRef<'d, T>, | 626 | timer: PeripheralRef<'d, T>, |
