diff options
| author | James Munns <[email protected]> | 2025-12-09 16:01:50 +0100 |
|---|---|---|
| committer | James Munns <[email protected]> | 2025-12-09 16:01:50 +0100 |
| commit | e267cb52d774e8f9db87a9b0cfe63cfa51d4fe8b (patch) | |
| tree | df388d63575aa821af648cd86bcbf2ce297bc29f /embassy-mcxa/src/clocks | |
| parent | af768af11cf10e0376b34c0e5abfc4f0a56398fc (diff) | |
rustfmt
Diffstat (limited to 'embassy-mcxa/src/clocks')
| -rw-r--r-- | embassy-mcxa/src/clocks/periph_helpers.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/embassy-mcxa/src/clocks/periph_helpers.rs b/embassy-mcxa/src/clocks/periph_helpers.rs index 1ea7a99ed..fed5e558e 100644 --- a/embassy-mcxa/src/clocks/periph_helpers.rs +++ b/embassy-mcxa/src/clocks/periph_helpers.rs | |||
| @@ -108,11 +108,7 @@ impl Div4 { | |||
| 108 | /// by 1, and `Div4::from_raw(15)` will divide the source by | 108 | /// by 1, and `Div4::from_raw(15)` will divide the source by |
| 109 | /// 16. | 109 | /// 16. |
| 110 | pub const fn from_raw(n: u8) -> Option<Self> { | 110 | pub const fn from_raw(n: u8) -> Option<Self> { |
| 111 | if n > 0b1111 { | 111 | if n > 0b1111 { None } else { Some(Self(n)) } |
| 112 | None | ||
| 113 | } else { | ||
| 114 | Some(Self(n)) | ||
| 115 | } | ||
| 116 | } | 112 | } |
| 117 | 113 | ||
| 118 | /// Store a specific divisor value that will divide the source | 114 | /// Store a specific divisor value that will divide the source |
