diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-04-05 00:35:25 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2024-04-05 00:48:46 +0200 |
| commit | a84b33995eacc32e0e13d70293fa9bd7b2bd75f8 (patch) | |
| tree | cfd48dbdad8885495cf20c4832f373444b867397 /embassy-rp/src/rtc/mod.rs | |
| parent | ab85eb4b60cd49ebcd43d2305f42327685f5e5a6 (diff) | |
rp: remove mod sealed.
Diffstat (limited to 'embassy-rp/src/rtc/mod.rs')
| -rw-r--r-- | embassy-rp/src/rtc/mod.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/embassy-rp/src/rtc/mod.rs b/embassy-rp/src/rtc/mod.rs index c8691bdc2..2ce7ac645 100644 --- a/embassy-rp/src/rtc/mod.rs +++ b/embassy-rp/src/rtc/mod.rs | |||
| @@ -188,16 +188,15 @@ pub enum RtcError { | |||
| 188 | NotRunning, | 188 | NotRunning, |
| 189 | } | 189 | } |
| 190 | 190 | ||
| 191 | mod sealed { | 191 | trait SealedInstance { |
| 192 | pub trait Instance { | 192 | fn regs(&self) -> crate::pac::rtc::Rtc; |
| 193 | fn regs(&self) -> crate::pac::rtc::Rtc; | ||
| 194 | } | ||
| 195 | } | 193 | } |
| 196 | 194 | ||
| 197 | /// RTC peripheral instance. | 195 | /// RTC peripheral instance. |
| 198 | pub trait Instance: sealed::Instance {} | 196 | #[allow(private_bounds)] |
| 197 | pub trait Instance: SealedInstance {} | ||
| 199 | 198 | ||
| 200 | impl sealed::Instance for crate::peripherals::RTC { | 199 | impl SealedInstance for crate::peripherals::RTC { |
| 201 | fn regs(&self) -> crate::pac::rtc::Rtc { | 200 | fn regs(&self) -> crate::pac::rtc::Rtc { |
| 202 | crate::pac::RTC | 201 | crate::pac::RTC |
| 203 | } | 202 | } |
