Fix warnings
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
use super::Error;
|
||||
|
||||
use bytes::{BufMut, BigEndian};
|
||||
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
||||
|
||||
@@ -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>
|
||||
{
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use frame::{Head, Error};
|
||||
use super::{head, StreamId};
|
||||
use super::{StreamId};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Reset {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user