From c6404fe569519d1ac3c5ad865f41c077baba53e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Thu, 14 Nov 2024 16:30:48 +0100 Subject: [PATCH] Forget our problems (#2541) --- esp-hal/src/i2s/parallel.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/esp-hal/src/i2s/parallel.rs b/esp-hal/src/i2s/parallel.rs index c7b84e630ce..9d6ab818a7d 100644 --- a/esp-hal/src/i2s/parallel.rs +++ b/esp-hal/src/i2s/parallel.rs @@ -287,6 +287,7 @@ where self.i2s.instance.tx_wait_done(); let i2s = unsafe { ManuallyDrop::take(&mut self.i2s) }; let view = unsafe { ManuallyDrop::take(&mut self.buf_view) }; + core::mem::forget(self); (i2s, BUF::from_view(view)) }