mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
Fix rustfmt check (#927)
* Add set -e to .travis.yml * Fix fmt * Fix codec feature
This commit is contained in:
parent
0e2e07812a
commit
dbb04e310c
@ -27,7 +27,11 @@ matrix:
|
||||
|
||||
# Test combinations of enabled features and rustfmt
|
||||
- rust: stable
|
||||
before_script: |
|
||||
rustup component add rustfmt
|
||||
script: |
|
||||
set -e
|
||||
|
||||
cargo fmt --all -- --check
|
||||
shopt -s expand_aliases
|
||||
alias check="cargo check --no-default-features"
|
||||
|
@ -59,7 +59,7 @@ default = [
|
||||
"uds",
|
||||
]
|
||||
|
||||
codec = ["tokio-codec"]
|
||||
codec = ["io", "tokio-codec"]
|
||||
fs = ["tokio-fs"]
|
||||
io = ["bytes", "tokio-io"]
|
||||
reactor = ["io", "mio", "tokio-reactor"]
|
||||
|
@ -17,11 +17,11 @@ extern crate either;
|
||||
extern crate futures;
|
||||
|
||||
mod never;
|
||||
#[cfg(feature = "util")]
|
||||
pub mod util;
|
||||
mod size_hint;
|
||||
mod str;
|
||||
mod u8;
|
||||
#[cfg(feature = "util")]
|
||||
pub mod util;
|
||||
|
||||
pub use self::size_hint::SizeHint;
|
||||
#[doc(inline)]
|
||||
|
@ -1,8 +1,8 @@
|
||||
use BufStream;
|
||||
use never::Never;
|
||||
use bytes::{Bytes, BytesMut};
|
||||
use futures::Poll;
|
||||
use never::Never;
|
||||
use std::io;
|
||||
use BufStream;
|
||||
|
||||
impl BufStream for Vec<u8> {
|
||||
type Item = io::Cursor<Vec<u8>>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user