Fix warnings

This commit is contained in:
Carl Lerche
2017-08-24 15:52:01 -07:00
parent 638791ac6c
commit b0e6867877
26 changed files with 91 additions and 238 deletions

View File

@@ -1,12 +1,11 @@
use {hpack, ConnectionError, FrameSize};
use {hpack, ConnectionError};
use error::User::*;
use frame::{self, Frame};
use frame::{self, Frame, FrameSize};
use futures::*;
use tokio_io::{AsyncRead, AsyncWrite};
use bytes::{BytesMut, Buf, BufMut};
use std::cmp;
use std::io::{self, Cursor};
#[derive(Debug)]
@@ -176,9 +175,11 @@ impl<T, B> Sink for FramedWrite<T, B>
trace!("encoded window_update; rem={:?}", self.buf.remaining());
}
Frame::Priority(v) => {
// v.encode(self.buf.get_mut());
Frame::Priority(_) => {
/*
v.encode(self.buf.get_mut());
trace!("encoded priority; rem={:?}", self.buf.remaining());
*/
unimplemented!();
}
Frame::Reset(v) => {
@@ -210,7 +211,7 @@ impl<T, B> Sink for FramedWrite<T, B>
Some(Next::Data(frame)) => {
self.last_data_frame = Some(frame);
}
Some(Next::Continuation(frame)) => {
Some(Next::Continuation(_)) => {
unimplemented!();
}
None => {}