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