Skip to content

Commit 4ca86f2

Browse files
committed
Address CI issues
At this stage allow where they happen. In future they can be allowed at the crate level if necesarry.
1 parent 915033f commit 4ca86f2

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

examples/led_nonblocking.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ fn heart_image(inner_brightness: u8) -> GreyscaleImage {
2929

3030
static GPIO: Mutex<RefCell<Option<GPIO>>> = Mutex::new(RefCell::new(None));
3131
static ANIM_TIMER: Mutex<RefCell<Option<LoResTimer<RTC0>>>> = Mutex::new(RefCell::new(None));
32-
static DISPLAY_TIMER: Mutex<RefCell<Option<MicrobitDisplayTimer<TIMER1>>>> = Mutex::new(RefCell::new(None));
32+
static DISPLAY_TIMER: Mutex<RefCell<Option<MicrobitDisplayTimer<TIMER1>>>> =
33+
Mutex::new(RefCell::new(None));
3334
static DISPLAY: Mutex<RefCell<Option<Display<MicrobitFrame>>>> = Mutex::new(RefCell::new(None));
3435

3536
#[entry]

src/display/image.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl BitImage {
7676
// FIXME: can we reject values other than 0 or 1?
7777
const fn row_byte(row: [u8; 5]) -> u8 {
7878
row[0] | row[1] << 1 | row[2] << 2 | row[3] << 3 | row[4] << 4
79-
};
79+
}
8080
BitImage([
8181
row_byte(im[0]),
8282
row_byte(im[1]),

src/led.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use crate::hal::gpio::gpio::{
88
use crate::hal::gpio::{Output, PushPull};
99
use crate::hal::prelude::*;
1010

11+
#[allow(clippy::upper_case_acronyms)]
1112
type LED = PIN<Output<PushPull>>;
1213

1314
const DEFAULT_DELAY_MS: u32 = 2;
@@ -28,6 +29,7 @@ pub struct Display {
2829

2930
impl Display {
3031
/// Initializes all the user LEDs
32+
#[allow(clippy::too_many_arguments)]
3133
pub fn new(
3234
col1: PIN4<Output<PushPull>>,
3335
col2: PIN5<Output<PushPull>>,

0 commit comments

Comments
 (0)