diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-10-13 21:58:43 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-10-13 22:06:09 +0200 |
| commit | 0d709fa5c8c517a29594c29323f1dcfc845f38cd (patch) | |
| tree | 0086f912ebcf2eb78448941a4427dd37d09900f9 | |
| parent | bc76a24eafb0a9c5b2b7ee62321db9688683b6a5 (diff) | |
nrf/saadc: require unborrow for Input.
This allows using borrowed pins in ChannelConfig.
| -rw-r--r-- | embassy-nrf/src/saadc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-nrf/src/saadc.rs b/embassy-nrf/src/saadc.rs index 2ce7ef16d..7f81d255f 100644 --- a/embassy-nrf/src/saadc.rs +++ b/embassy-nrf/src/saadc.rs | |||
| @@ -229,7 +229,7 @@ impl<'d, const N: usize> Drop for OneShot<'d, N> { | |||
| 229 | } | 229 | } |
| 230 | 230 | ||
| 231 | /// An input that can be used as either or negative end of a ADC differential in the SAADC periperhal. | 231 | /// An input that can be used as either or negative end of a ADC differential in the SAADC periperhal. |
| 232 | pub trait Input { | 232 | pub trait Input: Unborrow<Target = Self> { |
| 233 | fn channel(&self) -> InputChannel; | 233 | fn channel(&self) -> InputChannel; |
| 234 | } | 234 | } |
| 235 | 235 | ||
