From 7389ebf84b8d64b970abb766d637cb4d0efde37d Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Fri, 26 Dec 2014 10:39:19 +0100 Subject: [PATCH] Add `#[must_use]` marker for Buffer --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 3d52cf3..cc9360d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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>,