diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-07-29 13:08:30 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-29 13:08:30 +0200 |
| commit | c8a48d726a7cc92ef989a519fdf55ec1f9fffbcd (patch) | |
| tree | c4d55f123620b68ed41cd517b437f61210fe6cfb /embassy-nrf/src/timer.rs | |
| parent | 61340d8c654abfb1e809042f9deceeaec0424d05 (diff) | |
| parent | cd1a3fcff34943117f446e1afeb9e6d531ee577b (diff) | |
Merge pull request #277 from Liamolucko/fix-peripheral-ub
extras: Fix UB in `Peripheral`
Diffstat (limited to 'embassy-nrf/src/timer.rs')
| -rw-r--r-- | embassy-nrf/src/timer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-nrf/src/timer.rs b/embassy-nrf/src/timer.rs index a6e91f228..7ff35c320 100644 --- a/embassy-nrf/src/timer.rs +++ b/embassy-nrf/src/timer.rs | |||
| @@ -29,7 +29,7 @@ pub(crate) mod sealed { | |||
| 29 | pub trait ExtendedInstance {} | 29 | pub trait ExtendedInstance {} |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | pub trait Instance: Unborrow<Target = Self> + sealed::Instance + 'static { | 32 | pub trait Instance: Unborrow<Target = Self> + sealed::Instance + 'static + Send { |
| 33 | type Interrupt: Interrupt; | 33 | type Interrupt: Interrupt; |
| 34 | } | 34 | } |
| 35 | pub trait ExtendedInstance: Instance + sealed::ExtendedInstance {} | 35 | pub trait ExtendedInstance: Instance + sealed::ExtendedInstance {} |
