Add `#[must_use]` marker for Buffer
This commit is contained in:
parent
3554dd41b1
commit
7389ebf84b
|
@ -91,6 +91,7 @@ pub struct SamplesRate(pub u32);
|
||||||
///
|
///
|
||||||
/// You should destroy this object as soon as possible. Data is only committed when it
|
/// You should destroy this object as soon as possible. Data is only committed when it
|
||||||
/// is destroyed.
|
/// is destroyed.
|
||||||
|
#[must_use]
|
||||||
pub struct Buffer<'a, T> {
|
pub struct Buffer<'a, T> {
|
||||||
// also contains something, taken by `Drop`
|
// also contains something, taken by `Drop`
|
||||||
target: Option<cpal_impl::Buffer<'a, T>>,
|
target: Option<cpal_impl::Buffer<'a, T>>,
|
||||||
|
|
Loading…
Reference in New Issue