From dcdde49d919905265d53b1ca932f8290178daf3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Mon, 20 Nov 2017 11:02:48 +0100 Subject: [PATCH] Fix no-default-features. --- parity/dapps.rs | 4 +--- test.sh | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/parity/dapps.rs b/parity/dapps.rs index 364f563c5..2c3f0049b 100644 --- a/parity/dapps.rs +++ b/parity/dapps.rs @@ -195,9 +195,7 @@ mod server { pub struct Middleware; impl RequestMiddleware for Middleware { - fn on_request( - &self, _req: &hyper::server::Request, _control: &hyper::Control - ) -> RequestMiddlewareAction { + fn on_request(&self, _req: hyper::Request) -> RequestMiddlewareAction { unreachable!() } } diff --git a/test.sh b/test.sh index 1613530cb..69204fef2 100755 --- a/test.sh +++ b/test.sh @@ -24,6 +24,10 @@ esac set -e +# Validate chainspecs ./scripts/validate_chainspecs.sh cargo test -j 8 $OPTIONS --features "$FEATURES" --all --exclude evmjit $1 + +# Validate --no-default-features build +cargo check --no-default-features