Add `#[must_use]` marker for Buffer

This commit is contained in:
Pierre Krieger 2014-12-26 10:39:19 +01:00
parent 3554dd41b1
commit 7389ebf84b
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ pub struct SamplesRate(pub u32);
///
/// You should destroy this object as soon as possible. Data is only committed when it
/// is destroyed.
#[must_use]
pub struct Buffer<'a, T> {
// also contains something, taken by `Drop`
target: Option<cpal_impl::Buffer<'a, T>>,