Skip to content

Commit f78db6f

Browse files
committed
added clippy rules
1 parent c2d22c4 commit f78db6f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

examples/deep_sleep.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
//! sleep effectively ends the program, this is how we get information about
99
//! the previous run.
1010
11+
#![allow(unknown_lints)]
12+
#![allow(unexpected_cfgs)]
13+
1114
use core::time::Duration;
1215
#[cfg(any(esp32c2, esp32c3))]
1316
use esp_idf_hal::gpio::Level;

examples/light_sleep.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
//! Enables multiple light sleep wakeup sources and do sleeps in a loop.
44
//! Prints wakeup reason and sleep time on wakeup.
55
6+
#![allow(unknown_lints)]
7+
#![allow(unexpected_cfgs)]
8+
69
use core::time::Duration;
710
#[cfg(any(esp32, esp32s2, esp32s3))]
811
use esp_idf_hal::gpio::AnyIOPin;
9-
#[cfg(any(esp32, esp32s2, esp32s3))]
1012
use esp_idf_hal::gpio::Pull;
1113
use esp_idf_hal::gpio::{self, PinDriver};
1214
use esp_idf_hal::peripherals::Peripherals;

0 commit comments

Comments
 (0)