From 4ff2e65b5c19b70703238d00d5e5fd9b80cb974b Mon Sep 17 00:00:00 2001
From: Robbert van der Helm <mail@robbertvanderhelm.nl>
Date: Sun, 6 Mar 2022 02:10:33 +0100
Subject: [PATCH] Add a note regarding the Buffer lifetime

---
 src/buffer.rs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/buffer.rs b/src/buffer.rs
index 83ca8b58..d4ba8aa9 100644
--- a/src/buffer.rs
+++ b/src/buffer.rs
@@ -11,6 +11,9 @@ use std::simd::{LaneCount, Simd, SupportedLaneCount};
 /// inputs already copied to the outputs. You can either use the iterator adapters to conveniently
 /// and efficiently iterate over the samples, or you can do your own thing using the raw audio
 /// buffers.
+///
+/// TODO: This lifetime makes zero sense because you're going to need unsafe lifetime casts to use
+///       this either way. Maybe just get rid of it in favor for raw pointers.
 #[derive(Default)]
 pub struct Buffer<'a> {
     /// Contains slices for the plugin's outputs. You can't directly create a nested slice form