nrf/saadc: require unborrow for Input.

This allows using borrowed pins in ChannelConfig.
This commit is contained in:
Dario Nieuwenhuis 2021-10-13 21:58:43 +02:00
parent bc76a24eaf
commit 0d709fa5c8

View File

@ -229,7 +229,7 @@ impl<'d, const N: usize> Drop for OneShot<'d, N> {
}
/// An input that can be used as either or negative end of a ADC differential in the SAADC periperhal.
pub trait Input {
pub trait Input: Unborrow<Target = Self> {
fn channel(&self) -> InputChannel;
}