diff --git a/src/bin/loop_server.rs b/src/bin/loop_server.rs index 12e4eb5..9ae2ecd 100644 --- a/src/bin/loop_server.rs +++ b/src/bin/loop_server.rs @@ -2,6 +2,9 @@ extern crate futures; extern crate hyper; extern crate lab_ebml; +use std::env::args; +use std::net::ToSocketAddrs; + use futures::future::FutureResult; use futures::stream::once; use futures::stream::repeat; @@ -12,8 +15,6 @@ use lab_ebml::webm_stream::WebmBuffer; use hyper::{Get, StatusCode}; use hyper::header::ContentType; use hyper::server::{Http, Request, Response, Service}; -use std::env::args; -use std::net::ToSocketAddrs; const SRC_FILE: &'static [u8] = include_bytes!("../data/test1.webm"); diff --git a/src/slice.rs b/src/slice.rs index 32733ce..9b1b547 100644 --- a/src/slice.rs +++ b/src/slice.rs @@ -1,4 +1,5 @@ use futures::Async; + use ebml::EbmlError; use ebml::EbmlEventSource; use ebml::FromEbml; diff --git a/src/webm_stream.rs b/src/webm_stream.rs index 800b311..4730473 100644 --- a/src/webm_stream.rs +++ b/src/webm_stream.rs @@ -3,7 +3,9 @@ use bytes::BufMut; use futures::Async; use futures::stream::Stream; -use ebml::*; +use ebml::EbmlError; +use ebml::EbmlEventSource; +use ebml::FromEbml; pub enum ParsingError { EbmlError(EbmlError),