Merge pull request #7096 from paritytech/td-nodef-features

Fix no-default-features.
This commit is contained in:
Marek Kotewicz 2017-11-21 13:10:57 +01:00 committed by GitHub
commit ab7307288b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -194,9 +194,7 @@ mod server {
pub struct Middleware; pub struct Middleware;
impl RequestMiddleware for Middleware { impl RequestMiddleware for Middleware {
fn on_request( fn on_request(&self, _req: hyper::Request) -> RequestMiddlewareAction {
&self, _req: &hyper::server::Request<hyper::net::HttpStream>, _control: &hyper::Control
) -> RequestMiddlewareAction {
unreachable!() unreachable!()
} }
} }

View File

@ -24,6 +24,10 @@ esac
set -e set -e
# Validate chainspecs
./scripts/validate_chainspecs.sh ./scripts/validate_chainspecs.sh
cargo test -j 8 $OPTIONS --features "$FEATURES" --all --exclude evmjit $1 cargo test -j 8 $OPTIONS --features "$FEATURES" --all --exclude evmjit $1
# Validate --no-default-features build
cargo check --no-default-features