stm32: add missing + 'a bounds on trait GATs

This commit is contained in:
Dario Nieuwenhuis
2021-08-04 19:39:54 +02:00
parent 250f1cd0a5
commit 9bd34429f3
5 changed files with 9 additions and 9 deletions

View File

@@ -84,7 +84,7 @@ impl<T: Instance> CryptoRng for Random<T> {}
impl<T: Instance> traits::rng::Rng for Random<T> {
type Error = Error;
#[rustfmt::skip]
type RngFuture<'a> where Self: 'a = impl Future<Output=Result<(), Self::Error>>;
type RngFuture<'a> where Self: 'a = impl Future<Output=Result<(), Self::Error>> + 'a;
fn fill_bytes<'a>(&'a mut self, dest: &'a mut [u8]) -> Self::RngFuture<'a> {
unsafe {