1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-28 01:32:57 +01:00

code cleanup

This commit is contained in:
Nathan Fox 2018-04-21 16:53:55 -04:00
parent de8a09254d
commit f6fd9e70f9
2 changed files with 1 additions and 3 deletions

View File

@ -2,7 +2,6 @@ use byteorder::{BigEndian, ByteOrder, NetworkEndian};
use bytes::{BufMut, Bytes, BytesMut};
use futures::{Async, Poll, Stream};
use rand;
use std::iter::FromIterator;
use std::{fmt, mem, ptr};
use body::Binary;
@ -30,7 +29,7 @@ impl Frame {
/// Create a new Close control frame.
#[inline]
pub fn close(reason: Option<CloseReason>, genmask: bool) -> Binary {
let payload:Vec<u8> = match reason {
let payload = match reason {
None => Vec::new(),
Some(reason) => {
let mut code_bytes = [0; 2];

View File

@ -43,7 +43,6 @@
//! # .finish();
//! # }
//! ```
use byteorder::{ByteOrder, NetworkEndian};
use bytes::Bytes;
use futures::{Async, Poll, Stream};
use http::{header, Method, StatusCode};