clear some warnings
This commit is contained in:
		| @@ -87,7 +87,7 @@ impl<T> Frame<T> { | |||||||
|         match self { |         match self { | ||||||
|             &Headers(ref v) => v.is_end_stream(), |             &Headers(ref v) => v.is_end_stream(), | ||||||
|             &Data(ref v) => v.is_end_stream(), |             &Data(ref v) => v.is_end_stream(), | ||||||
|             &Reset(ref v) => true, |             &Reset(_) => true, | ||||||
|  |  | ||||||
|             &PushPromise(_) | |             &PushPromise(_) | | ||||||
|             &WindowUpdate(_) | |             &WindowUpdate(_) | | ||||||
|   | |||||||
| @@ -1,9 +1,9 @@ | |||||||
| use {ConnectionError, Frame}; | use {ConnectionError, Frame}; | ||||||
| use client::Client; | use client::Client; | ||||||
| use error; | use error; | ||||||
| use frame::{self, SettingSet, StreamId}; | use frame::{self, StreamId}; | ||||||
| use proto::*; | use proto::*; | ||||||
| use proto::ping_pong::PingPayload; | //use proto::ping_pong::PingPayload; | ||||||
| use server::Server; | use server::Server; | ||||||
|  |  | ||||||
| use bytes::{Bytes, IntoBuf}; | use bytes::{Bytes, IntoBuf}; | ||||||
|   | |||||||
| @@ -31,13 +31,13 @@ impl FlowControlState { | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     pub fn with_next_update(next_window_update: WindowSize) -> FlowControlState { |     // pub fn with_next_update(next_window_update: WindowSize) -> FlowControlState { | ||||||
|         FlowControlState { |     //     FlowControlState { | ||||||
|             window_size: 0, |     //         window_size: 0, | ||||||
|             underflow: 0, |     //         underflow: 0, | ||||||
|             next_window_update, |     //         next_window_update, | ||||||
|         } |     //     } | ||||||
|     } |     // } | ||||||
|  |  | ||||||
|     /// Reduce future capacity of the window. |     /// Reduce future capacity of the window. | ||||||
|     /// |     /// | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| use {frame, ConnectionError, Peer, StreamId}; | use {frame, Peer, StreamId}; | ||||||
| use error::Reason; | use error::Reason; | ||||||
| use frame::{Frame, SettingSet}; | use frame::Frame; | ||||||
|  |  | ||||||
| use bytes::{Buf, IntoBuf}; | use bytes::{Buf, IntoBuf}; | ||||||
| use futures::*; | use futures::*; | ||||||
| @@ -25,13 +25,13 @@ mod stream_store; | |||||||
| pub use self::connection::Connection; | pub use self::connection::Connection; | ||||||
|  |  | ||||||
| use self::flow_control::{ControlFlow, FlowControl}; | use self::flow_control::{ControlFlow, FlowControl}; | ||||||
| use self::flow_control_state::{FlowControlState, WindowUnderflow}; | use self::flow_control_state::{FlowControlState}; | ||||||
| use self::framed_read::FramedRead; | use self::framed_read::FramedRead; | ||||||
| use self::framed_write::FramedWrite; | use self::framed_write::FramedWrite; | ||||||
| use self::ping_pong::{ControlPing, PingPayload, PingPong}; | use self::ping_pong::{ControlPing, PingPayload, PingPong}; | ||||||
| use self::ready::ReadySink; | use self::ready::ReadySink; | ||||||
| use self::settings::{ApplySettings, ControlSettings, Settings}; | use self::settings::{ApplySettings, /*ControlSettings,*/ Settings}; | ||||||
| use self::state::{StreamState, PeerState}; | use self::state::{StreamState}; | ||||||
| use self::stream_recv_close::StreamRecvClose; | use self::stream_recv_close::StreamRecvClose; | ||||||
| use self::stream_recv_open::StreamRecvOpen; | use self::stream_recv_open::StreamRecvOpen; | ||||||
| use self::stream_send_close::StreamSendClose; | use self::stream_send_close::StreamSendClose; | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| use {ConnectionError, StreamId}; | use ConnectionError; | ||||||
| use frame::{Frame, Ping, SettingSet}; | use frame::{Frame, Ping, SettingSet}; | ||||||
| use proto::{ApplySettings, ReadySink, ControlStreams, FlowControlState}; | use proto::{ApplySettings, ReadySink}; | ||||||
|  |  | ||||||
| use futures::*; | use futures::*; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,14 +1,8 @@ | |||||||
| use {Peer, StreamId}; | use {ConnectionError, Peer}; | ||||||
| use error::{ConnectionError, Reason}; |  | ||||||
| use error::Reason::*; | use error::Reason::*; | ||||||
| use error::User::*; | use error::User::*; | ||||||
| use proto::{FlowControlState, WindowSize}; | use proto::{FlowControlState, WindowSize}; | ||||||
|  |  | ||||||
| use fnv::FnvHasher; |  | ||||||
| use ordermap::{Entry, OrderMap}; |  | ||||||
| use std::hash::BuildHasherDefault; |  | ||||||
| use std::marker::PhantomData; |  | ||||||
|  |  | ||||||
| /// Represents the state of an H2 stream | /// Represents the state of an H2 stream | ||||||
| /// | /// | ||||||
| /// ```not_rust | /// ```not_rust | ||||||
|   | |||||||
| @@ -1,15 +1,9 @@ | |||||||
| use {ConnectionError}; | use {ConnectionError}; | ||||||
| use error::Reason; | use error::Reason; | ||||||
| use error::User; |  | ||||||
| use frame::{self, Frame}; | use frame::{self, Frame}; | ||||||
| use proto::*; | use proto::*; | ||||||
| use proto::ready::ReadySink; | use proto::ready::ReadySink; | ||||||
|  |  | ||||||
| use fnv::FnvHasher; |  | ||||||
| use futures::*; |  | ||||||
| use ordermap::OrderMap; |  | ||||||
| use std::hash::BuildHasherDefault; |  | ||||||
|  |  | ||||||
| // TODO track "last stream id" for GOAWAY. | // TODO track "last stream id" for GOAWAY. | ||||||
| // TODO track/provide "next" stream id. | // TODO track/provide "next" stream id. | ||||||
| // TODO reset_streams needs to be bounded. | // TODO reset_streams needs to be bounded. | ||||||
|   | |||||||
| @@ -2,8 +2,6 @@ use ConnectionError; | |||||||
| use frame::{Frame, StreamId}; | use frame::{Frame, StreamId}; | ||||||
| use proto::*; | use proto::*; | ||||||
|  |  | ||||||
| use futures::*; |  | ||||||
|  |  | ||||||
| /// Tracks a connection's streams. | /// Tracks a connection's streams. | ||||||
| #[derive(Debug)] | #[derive(Debug)] | ||||||
| pub struct StreamRecvOpen<T> { | pub struct StreamRecvOpen<T> { | ||||||
|   | |||||||
| @@ -1,13 +1,8 @@ | |||||||
| use ConnectionError; | use ConnectionError; | ||||||
| use client::Client; |  | ||||||
| use error::Reason; | use error::Reason; | ||||||
| use error::User; |  | ||||||
| use frame::{self, Frame}; | use frame::{self, Frame}; | ||||||
| use proto::*; | use proto::*; | ||||||
|  |  | ||||||
| use futures::*; |  | ||||||
| use std::marker::PhantomData; |  | ||||||
|  |  | ||||||
| // TODO track "last stream id" for GOAWAY. | // TODO track "last stream id" for GOAWAY. | ||||||
| // TODO track/provide "next" stream id. | // TODO track/provide "next" stream id. | ||||||
| // TODO reset_streams needs to be bounded. | // TODO reset_streams needs to be bounded. | ||||||
|   | |||||||
| @@ -3,8 +3,6 @@ use error::User::{InvalidStreamId, StreamReset}; | |||||||
| use frame::{Frame, SettingSet}; | use frame::{Frame, SettingSet}; | ||||||
| use proto::*; | use proto::*; | ||||||
|  |  | ||||||
| use futures::*; |  | ||||||
|  |  | ||||||
| #[derive(Debug)] | #[derive(Debug)] | ||||||
| pub struct StreamSendOpen<T> { | pub struct StreamSendOpen<T> { | ||||||
|     inner: T, |     inner: T, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user