Skip to content

Commit

Permalink
Fix non_camel_case_types warning
Browse files Browse the repository at this point in the history
  • Loading branch information
TheZoq2 committed Dec 15, 2019
1 parent d6b95ee commit 5b8e883
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gpio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ pub enum State {
Low,
}

// Using SCREAMING_SNAKE_CASE to be consistent with other HALs
// see 59b2740 and #125 for motivation
#[allow(non_camel_case_types)]
#[derive(Debug, PartialEq)]
pub enum Edge {
RISING,
Expand Down

0 comments on commit 5b8e883

Please sign in to comment.