diff options
| author | ROMemories <[email protected]> | 2025-05-26 14:43:21 +0200 |
|---|---|---|
| committer | ROMemories <[email protected]> | 2025-05-26 14:43:21 +0200 |
| commit | ca17b41d0dfa32150ac72187e1b05924577641cb (patch) | |
| tree | fff44172f761282f4b8212f423c261b037bb6dfc | |
| parent | 8fa07ac062eba0ddc3021e7f8787fce32f62cfbe (diff) | |
fixup! feat(stm32-g0): provide a `const` constructor on `rcc::Config`
| -rw-r--r-- | embassy-stm32/src/rcc/g0.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/embassy-stm32/src/rcc/g0.rs b/embassy-stm32/src/rcc/g0.rs index c03cbf9a8..ce6398afd 100644 --- a/embassy-stm32/src/rcc/g0.rs +++ b/embassy-stm32/src/rcc/g0.rs | |||
| @@ -98,7 +98,6 @@ pub struct Config { | |||
| 98 | } | 98 | } |
| 99 | 99 | ||
| 100 | impl Config { | 100 | impl Config { |
| 101 | #[inline] | ||
| 102 | pub const fn new() -> Self { | 101 | pub const fn new() -> Self { |
| 103 | Config { | 102 | Config { |
| 104 | hsi: Some(Hsi { | 103 | hsi: Some(Hsi { |
| @@ -120,7 +119,6 @@ impl Config { | |||
| 120 | } | 119 | } |
| 121 | 120 | ||
| 122 | impl Default for Config { | 121 | impl Default for Config { |
| 123 | #[inline] | ||
| 124 | fn default() -> Config { | 122 | fn default() -> Config { |
| 125 | Self::new() | 123 | Self::new() |
| 126 | } | 124 | } |
