Update for rustc

This commit is contained in:
Pierre Krieger 2015-02-22 10:31:25 +01:00
parent ff63e283d5
commit 28bd368658
4 changed files with 20 additions and 17 deletions

View file

@ -87,7 +87,7 @@ pub struct Voice(cpal_impl::Voice);
pub type ChannelsCount = u16;
///
#[derive(Show, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub struct SamplesRate(pub u32);
/// Represents a buffer that must be filled with audio data.
@ -95,7 +95,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> {
pub struct Buffer<'a, T: 'a> {
// also contains something, taken by `Drop`
target: Option<cpal_impl::Buffer<'a, T>>,