From c6ab5e8e89b28d6a376b26143319e2e591d594ed Mon Sep 17 00:00:00 2001 From: Tangent 128 Date: Mon, 2 Apr 2018 20:10:50 -0400 Subject: [PATCH] Fix name collision --- src/webm_stream.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/webm_stream.rs b/src/webm_stream.rs index 5f50fc0..5bf7b25 100644 --- a/src/webm_stream.rs +++ b/src/webm_stream.rs @@ -11,15 +11,15 @@ pub enum ParsingError { OtherError(E) } -pub struct WebmStream { +pub struct WebmBuffer { stream: S, buffer: BytesMut, last_read: usize } -impl, S: Stream> WebmStream { +impl, S: Stream> WebmBuffer { pub fn new(stream: S) -> Self { - WebmStream { + WebmBuffer { stream: stream, buffer: BytesMut::new(), last_read: 0 @@ -71,11 +71,11 @@ impl, S: Stream> WebmStream { } } -impl, S: Stream> WebmEventSource for WebmStream { +impl, S: Stream> WebmEventSource for WebmBuffer { type Error = ParsingError; fn poll_event<'a>(&'a mut self) -> Result>>, Self::Error> { - return WebmStream::poll_event(self); + return WebmBuffer::poll_event(self); } }