Skip to content

Commit 5b8e883

Browse files
committed
Fix non_camel_case_types warning
1 parent d6b95ee commit 5b8e883

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/gpio.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ pub enum State {
7777
Low,
7878
}
7979

80+
// Using SCREAMING_SNAKE_CASE to be consistent with other HALs
81+
// see 59b2740 and #125 for motivation
82+
#[allow(non_camel_case_types)]
8083
#[derive(Debug, PartialEq)]
8184
pub enum Edge {
8285
RISING,

0 commit comments

Comments
 (0)