diff options
| author | ROMemories <[email protected]> | 2025-05-26 14:43:29 +0200 |
|---|---|---|
| committer | ROMemories <[email protected]> | 2025-05-26 14:43:29 +0200 |
| commit | fce84bd51be5fa52e965255cabbb26d69a1edbab (patch) | |
| tree | b1f70b4eaf1e13354da3694358fe8843ac611409 | |
| parent | ca17b41d0dfa32150ac72187e1b05924577641cb (diff) | |
fixup! feat(stm32-g4): provide a `const` constructor on `rcc::Config`
| -rw-r--r-- | embassy-stm32/src/rcc/g4.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/embassy-stm32/src/rcc/g4.rs b/embassy-stm32/src/rcc/g4.rs index e4b216450..da13e16aa 100644 --- a/embassy-stm32/src/rcc/g4.rs +++ b/embassy-stm32/src/rcc/g4.rs | |||
| @@ -92,7 +92,6 @@ pub struct Config { | |||
| 92 | } | 92 | } |
| 93 | 93 | ||
| 94 | impl Config { | 94 | impl Config { |
| 95 | #[inline] | ||
| 96 | pub const fn new() -> Self { | 95 | pub const fn new() -> Self { |
| 97 | Config { | 96 | Config { |
| 98 | hsi: true, | 97 | hsi: true, |
| @@ -112,7 +111,6 @@ impl Config { | |||
| 112 | } | 111 | } |
| 113 | 112 | ||
| 114 | impl Default for Config { | 113 | impl Default for Config { |
| 115 | #[inline] | ||
| 116 | fn default() -> Config { | 114 | fn default() -> Config { |
| 117 | Self::new() | 115 | Self::new() |
| 118 | } | 116 | } |
