Fix warnings

This commit is contained in:
Carl Lerche
2017-06-27 12:23:57 -07:00
parent 79aa11ad32
commit fee43a09c8
17 changed files with 61 additions and 59 deletions

View File

@@ -1,5 +1,3 @@
use super::Error;
use bytes::{BufMut, BigEndian};
#[derive(Debug, Copy, Clone, PartialEq, Eq)]

View File

@@ -1,6 +1,5 @@
use super::StreamId;
use hpack;
use error::Reason;
use frame::{self, Frame, Head, Kind, Error};
use util::byte_str::ByteStr;
@@ -201,6 +200,10 @@ impl Headers {
response
}
pub fn into_request(self) -> request::Head {
unimplemented!();
}
pub fn encode(self, encoder: &mut hpack::Encoder, dst: &mut BytesMut)
-> Option<Continuation>
{

View File

@@ -1,10 +1,6 @@
use hpack;
use error::{ConnectionError, Reason};
use bytes::{Bytes, BytesMut, BufMut};
use std::io;
/// A helper macro that unpacks a sequence of 4 bytes found in the buffer with
/// the given identifier, starting at the given offset, into the given integer
/// type. Obviously, the integer type should be able to support at least 4
@@ -113,8 +109,6 @@ impl Frame {
impl From<Error> for ConnectionError {
fn from(src: Error) -> ConnectionError {
use self::Error::*;
match src {
// TODO: implement
_ => ConnectionError::Proto(Reason::ProtocolError),

View File

@@ -1,5 +1,5 @@
use frame::{Head, Error};
use super::{head, StreamId};
use super::{StreamId};
#[derive(Debug)]
pub struct Reset {

View File

@@ -1,5 +1,5 @@
use frame::{Frame, Error, Head, Kind};
use bytes::{Bytes, BytesMut, BufMut, BigEndian};
use bytes::{BytesMut, BufMut, BigEndian};
#[derive(Debug, Clone, Default, Eq, PartialEq)]
pub struct Settings {