Skip to content

Commit b3e9cc7

Browse files
committed
Add workaround for rust-lang/rust#128617
1 parent d78c5f6 commit b3e9cc7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mac/miim.rs

+4
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ where
123123
mod pin_impls {
124124
use crate::hal::gpio::{gpioa::PA2, gpioc::PC1, Alternate};
125125

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

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

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

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

0 commit comments

Comments
 (0)