Skip to content

Commit

Permalink
Workaround for rust-lang/rust#128617
Browse files Browse the repository at this point in the history
  • Loading branch information
datdenkikniet committed Aug 3, 2024
1 parent ab5c464 commit 796b03f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mac/miim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ where
mod pin_impls {
use crate::hal::gpio::{gpioa::PA2, gpioc::PC1, Alternate};

// See: https://github.com/rust-lang/rust/issues/128617
#[allow(dead_code)]
const AF11: u8 = 11;

unsafe impl super::MdioPin for PA2<Alternate<AF11>> {}
Expand All @@ -133,6 +135,8 @@ mod pin_impls {
mod pin_impls {
use crate::hal::gpio::{gpioa::PA2, gpioc::PC1, Alternate};

// See: https://github.com/rust-lang/rust/issues/128617
#[allow(dead_code)]
const AF11: u8 = 11;

unsafe impl super::MdioPin for PA2<Alternate<AF11>> {}
Expand Down

0 comments on commit 796b03f

Please sign in to comment.