diff options
| author | Vincent Stakenburg <[email protected]> | 2022-09-15 12:34:17 +0200 |
|---|---|---|
| committer | Vincent Stakenburg <[email protected]> | 2022-09-15 12:34:17 +0200 |
| commit | c4d5c047d7311e506ee1c0c9322cbf4e72dd6bcc (patch) | |
| tree | 759eb77a06387845654633d617aef77376668af7 /embassy-stm32/src/eth/v2/mod.rs | |
| parent | 809a4a127ba03ab14e8fdd8e8d2dc1e1e51f3522 (diff) | |
make `State::new()` const, consistent with others
Diffstat (limited to 'embassy-stm32/src/eth/v2/mod.rs')
| -rw-r--r-- | embassy-stm32/src/eth/v2/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/eth/v2/mod.rs b/embassy-stm32/src/eth/v2/mod.rs index d67c3c5e4..a81ee1183 100644 --- a/embassy-stm32/src/eth/v2/mod.rs +++ b/embassy-stm32/src/eth/v2/mod.rs | |||
| @@ -19,7 +19,7 @@ use super::*; | |||
| 19 | 19 | ||
| 20 | pub struct State<'d, T: Instance, const TX: usize, const RX: usize>(StateStorage<Inner<'d, T, TX, RX>>); | 20 | pub struct State<'d, T: Instance, const TX: usize, const RX: usize>(StateStorage<Inner<'d, T, TX, RX>>); |
| 21 | impl<'d, T: Instance, const TX: usize, const RX: usize> State<'d, T, TX, RX> { | 21 | impl<'d, T: Instance, const TX: usize, const RX: usize> State<'d, T, TX, RX> { |
| 22 | pub fn new() -> Self { | 22 | pub const fn new() -> Self { |
| 23 | Self(StateStorage::new()) | 23 | Self(StateStorage::new()) |
| 24 | } | 24 | } |
| 25 | } | 25 | } |
