aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/eth/v2/mod.rs
diff options
context:
space:
mode:
authorVincent Stakenburg <[email protected]>2022-09-15 12:34:17 +0200
committerVincent Stakenburg <[email protected]>2022-09-15 12:34:17 +0200
commitc4d5c047d7311e506ee1c0c9322cbf4e72dd6bcc (patch)
tree759eb77a06387845654633d617aef77376668af7 /embassy-stm32/src/eth/v2/mod.rs
parent809a4a127ba03ab14e8fdd8e8d2dc1e1e51f3522 (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.rs2
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
20pub struct State<'d, T: Instance, const TX: usize, const RX: usize>(StateStorage<Inner<'d, T, TX, RX>>); 20pub struct State<'d, T: Instance, const TX: usize, const RX: usize>(StateStorage<Inner<'d, T, TX, RX>>);
21impl<'d, T: Instance, const TX: usize, const RX: usize> State<'d, T, TX, RX> { 21impl<'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}