diff options
| author | ROMemories <[email protected]> | 2025-05-26 14:43:07 +0200 |
|---|---|---|
| committer | ROMemories <[email protected]> | 2025-05-26 14:43:07 +0200 |
| commit | 8fa07ac062eba0ddc3021e7f8787fce32f62cfbe (patch) | |
| tree | cb1d7a73ad48319fa39f23f55c05542a68be58b1 | |
| parent | 576241fe2a455fff58527d9a593583fdab2d51bb (diff) | |
fixup! feat(stm32-c0): provide a `const` constructor on `rcc::Config`
| -rw-r--r-- | embassy-stm32/src/rcc/c0.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/embassy-stm32/src/rcc/c0.rs b/embassy-stm32/src/rcc/c0.rs index 68f67af01..cac2a9149 100644 --- a/embassy-stm32/src/rcc/c0.rs +++ b/embassy-stm32/src/rcc/c0.rs | |||
| @@ -60,7 +60,6 @@ pub struct Config { | |||
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | impl Config { | 62 | impl Config { |
| 63 | #[inline] | ||
| 64 | pub const fn new() -> Self { | 63 | pub const fn new() -> Self { |
| 65 | Config { | 64 | Config { |
| 66 | hsi: Some(Hsi { | 65 | hsi: Some(Hsi { |
| @@ -78,7 +77,6 @@ impl Config { | |||
| 78 | } | 77 | } |
| 79 | 78 | ||
| 80 | impl Default for Config { | 79 | impl Default for Config { |
| 81 | #[inline] | ||
| 82 | fn default() -> Config { | 80 | fn default() -> Config { |
| 83 | Self::new() | 81 | Self::new() |
| 84 | } | 82 | } |
